示例#1
0
 /**
  * @return bool TRUE if the file can be written by the current user, FALSE otherwise
  */
 public function isWritable()
 {
     if ($this->realFile === null) {
         throw new EyeUnsupportedOperationException(__METHOD__ . ' on ' . $this->path);
     }
     try {
         $this->checkWritePermission();
         return $this->realFile->isWritable();
     } catch (EyeSecurityException $e) {
         return false;
     }
 }