コード例 #1
0
ファイル: File.php プロジェクト: point/cassea
 /**
  * Конструктор проверяет чтобы имя файла было не пусто
  */
 public function __construct($path = null, $absPath = false)
 {
     if (is_null($path) || $path == '') {
         throw new FileSystemException('No path or file name given for File constructor');
     }
     parent::__construct($path, $absPath);
 }