function init() { parent::init(); $this->hasOne('dokku_alt/App'); $this->addField('name'); $this->addField('value'); $this->addHook('beforeInsert,beforeDelete,beforeModify', $this); }
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 insert() { if (!$this->get('width') || !$this->get('height') || !$this->get('weight')) { $this->get_measures(); } parent::insert(); return $this; }
function init() { parent::init(); //$this->hasOne('dokku_alt/App'); $this->addField('type'); $this->addField('fingerprint'); $this->addField('publickey')->type('text')->caption('Public Key'); $this->addField('privatekey')->type('text')->hint('Optional')->caption('Private Key'); }
public function insert() { if ($this->get('size') === null) { $this->set('size', 0); } if ($this->get('sizetype') === null) { $this->set('sizetype', 1); } parent::insert(); $urls = $this->get('url'); $this->insert_link_urls($urls); return $this; }
public function __construct() { $params = Zend_Registry::get('params'); $this->agentSchemeNumber = $params->homelet->defaultAgent; parent::__construct(); }
public function insert() { parent::insert(); $this->log_version(); return $this; }
public function insert() { $this->get_torrent_size(); parent::insert(); return $this; }
public function commit() { parent::commit(); $this->add_children(); return $this; }