/** * Specialized in order to dynamically get the type icon * * @TODO performance optimize this * * @param string The column name. */ public function __get($column) { if ($column == 'type') { if (!isset($this->_type)) { $this->_type = MediaHelper::getTypeIcon($this->name); } return $this->_type; } return parent::__get($column); }