public function save() { if ($this->_data['created_at'] === null) { $this->_data['created_at'] = $_SERVER['REQUEST_TIME']; } return parent::save(); }
public function save() { $this->_data['normalized_title'] = self::_normalizeTitle($this->_data['title']); if ($this->_data['created_at'] === null) { $this->_data['created_at'] = $_SERVER['REQUEST_TIME']; } return parent::save(); }