public function __construct($data = array()) { parent::__construct($data); $this->set('display_size', round($this->get('size'), 2)); $this->set('display_sizetype', $this->sizetypes[$this->get('sizetype')]); $this->set('display_file', $this->get_display_filename()); }
public function __construct($data = array()) { parent::__construct($data); $this->set('comment_rights', sets::user('rights') || $this->get('cookie') == query::$cookie); $this->set('text', Transform_Text::cut_long_words($this->get('text'))); $this->set('delete_rights', sets::user('rights')); $this->set('avatar', md5(strtolower($this->get('email')))); }
public function __construct($data = array()) { parent::__construct($data); if (!$this->get('link_id') && $this->get_id()) { throw new Error("Model_Post_Link data should be joined" . " with post_link_url and post_url table"); } if ($this->get('url')) { $this->set('url', array($this->build_url_array())); } else { $this->set('url', array()); } $this->set('display_size', round($this->get('size'), 2)); $this->set('display_sizetype', $this->sizetypes[$this->get('sizetype')]); }
public function __construct() { $params = Zend_Registry::get('params'); $this->agentSchemeNumber = $params->homelet->defaultAgent; parent::__construct(); }