Exemple #1
0
 function init()
 {
     parent::init();
     $this->hasOne('dokku_alt/App');
     $this->addField('name');
     $this->addField('value');
     $this->addHook('beforeInsert,beforeDelete,beforeModify', $this);
 }
Exemple #2
0
 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'))));
 }
Exemple #3
0
 public function insert()
 {
     if (!$this->get('width') || !$this->get('height') || !$this->get('weight')) {
         $this->get_measures();
     }
     parent::insert();
     return $this;
 }
Exemple #4
0
 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');
 }
Exemple #5
0
 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();
 }
Exemple #7
0
 public function insert()
 {
     parent::insert();
     $this->log_version();
     return $this;
 }
Exemple #8
0
 public function insert()
 {
     $this->get_torrent_size();
     parent::insert();
     return $this;
 }
Exemple #9
0
 public function commit()
 {
     parent::commit();
     $this->add_children();
     return $this;
 }