public function deleteThumbs(array $routes)
    {
        $basePath = Yii::getAlias($routes['basePath']);

        foreach ($this->getThumbs() as $thumbUrl) {
            unlink("$basePath/$thumbUrl");
        }

        unlink("$basePath/{$this->getDefaultThumbUrl()}");
    }
public function deleteThumbs(array $routes)
    {
        $basePath = Yii::getAlias($routes['basePath']);

        foreach ($this->getThumbs() as $thumbUrl) {
            unlink("$basePath/$thumbUrl");
        }

        unlink("$basePath/{$this->getDefaultThumbUrl()}");
    }
public function deleteThumbs ( array $ routes ) { $ basePath = Yii :: getAlias ( $ routes [ 'basePath' ] ) ; foreach ( $ this -> getThumbs ( ) as $ thumbUrl ) { unlink ( "$basePath/$thumbUrl" ) ; } unlink ( "$basePath/{$this->getDefaultThumbUrl()}" ) ; }
Delete thumbnails for current image
@param array $routes see routes in module config
Delete thumbnails for current image