protected function _preSave($is_new) { parent::_preSave($is_new); if ($is_new) { $this->_time = NOW; } }
protected function _preSave($is_new) { parent::_preSave($is_new); if ($is_new) { $this->_created_at = NOW; } }
protected function _preSave($is_new) { parent::_preSave($is_new); $this->_sortfields = $this->getSortFieldsAsString(); $this->_columns = join(',', $this->getColumns()); }
protected function _preSave($is_new) { parent::_preSave($is_new); $this->_date = NOW; $this->_author = framework\Context::getUser(); }
protected function _preSave($is_new) { parent::_preSave($is_new); if ($is_new) { if (!$this->_posted) { $this->_posted = NOW; } if (!$this->_comment_number) { $this->_comment_number = tables\Comments::getTable()->getNextCommentNumber($this->_target_id, $this->_target_type); } } }