コード例 #1
0
ファイル: VirtualFile.php プロジェクト: DavidGarciaCat/eyeos
 /**
  * @return bool TRUE if the file can be read by the current user, FALSE otherwise
  */
 public function isReadable()
 {
     if ($this->realFile === null) {
         throw new EyeUnsupportedOperationException(__METHOD__ . ' on ' . $this->path);
     }
     try {
         $this->checkReadPermission();
         return $this->realFile->isReadable();
     } catch (EyeSecurityException $e) {
         return false;
     }
 }