rm() защищенный Метод

Remove dirs/files
Автор: Dmitry (dio) Levashov
protected rm ( $args ) : array
Результат array
Пример #1
0
 protected function rm($args)
 {
     $result = parent::rm($args);
     foreach ($args['targets'] as $target) {
         // If the image has a corresponding Visual, remove it
         $path = $this->getPath($target);
         $v = Visual::get_by_path($path);
         if ($v) {
             $v->delete();
         }
     }
     return $result;
 }