/** * 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; }
/** * 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; }