예제 #1
0
파일: File.php 프로젝트: plan2net/TYPO3.CMS
 /**
  * Checks if the file has a (metadata) property which
  * can be retrieved by "getProperty"
  *
  * @param string $key
  * @return bool
  */
 public function hasProperty($key)
 {
     if (!parent::hasProperty($key)) {
         return array_key_exists($key, $this->_getMetaData());
     }
     return TRUE;
 }
예제 #2
0
 /**
  * Checks if the file has a (metadata) property which
  * can be retrieved by "getProperty"
  *
  * @param string $key
  * @return boolean
  */
 public function hasProperty($key)
 {
     if (!parent::hasProperty($key)) {
         if (!$this->metaDataLoaded) {
             $this->loadMetaData();
         }
         return array_key_exists($key, $this->metaDataProperties);
     }
     return TRUE;
 }