getInstance() публичный статический Метод

Instantiate the object (Factory)
public static getInstance ( ) : Files
Результат Files The files object
Пример #1
0
 /**
  * Clear the image
  *
  * @param string $key
  */
 public function clearImage($key)
 {
     $filePath = $this->getImageFilePath($key);
     if (is_file(TL_ROOT . '/' . $filePath)) {
         Files::getInstance()->delete($filePath);
     }
 }