public function insert() { if (!$this->get('width') || !$this->get('height') || !$this->get('weight')) { $this->get_measures(); } parent::insert(); return $this; }
public function insert() { $this->set('pretty_date', Transform_Text::rudate()); $this->set('sortdate', ceil(microtime(true) * 1000)); $this->set('area', def::area(0)); parent::insert(); Database::update('post', array('update_count' => '++'), $this->get('post_id')); $this->add_children(); return $this; }
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 insert() { parent::insert(); $this->log_version(); return $this; }
public function insert() { $this->get_torrent_size(); parent::insert(); return $this; }