Пример #1
0
 /**
  * Returns true if the files is readable.
  *
  * @return boolean true if the files is readable.
  */
 public function canRead()
 {
     if (!parent::canRead()) {
         return false;
     }
     return $this->getEntry() ? $this->getEntry()->canRead : true;
 }
Пример #2
0
 /**
  * Returns true if the files is readable.
  *
  * @return boolean true if the files is readable.
  */
 public function canRead()
 {
     if (!parent::canRead()) {
         return false;
     }
     // Check parent
     if (!$this->exists()) {
         return $this->getParentFile()->canRead();
     }
     return is_readable($this->internalPath);
 }