Example #1
0
 /**
  * Getter for file-properties
  *
  * @param string $key
  *
  * @return mixed
  */
 public function getProperty($key)
 {
     // The uid always (!) has to come from this file and never the original file (see getOriginalFile() to get this)
     if ($this->isUnchanged() && $key !== 'uid') {
         return $this->originalFile->getProperty($key);
     } else {
         return $this->properties[$key];
     }
 }
 /**
  * Getter for file-properties
  *
  * @param string $key
  *
  * @return mixed
  */
 public function getProperty($key)
 {
     if ($this->isUnchanged()) {
         return $this->originalFile->getProperty($key);
     } else {
         return $this->properties[$key];
     }
 }
Example #3
0
 /**
  * Check if file is marked as missing by indexer
  *
  * @return bool
  */
 public function isMissing()
 {
     return (bool) $this->originalFile->getProperty('missing');
 }