public function getProperty($name) { if ($name == 'contents' && !isset($this->_data['contents'])) { $url = $this->file; $response = $this->_fetch($url); $this->_data['contents'] = $response; } return parent::getProperty($name); }
public function getProperty($column) { $result = parent::getProperty($column); if (in_array($column, array('allowed_extensions', 'allowed_mimetypes'))) { if ($result instanceof KObjectConfigInterface) { return $result->toArray(); } elseif (!is_array($result)) { return array(); } } // Disable thumbnails if these cannot be generated. if ($column == 'thumbnails' && $result) { $result = $this->thumbnailsAvailable(); } return $result; }