public function save() { $this->data['originalDate'] = date('Y-m-d', strtotime($this->data['originalDate'])); if ($this->data['originalDate'] == date('Y-m-d', strtotime(''))) { $this->errors['originalDate'] = 'Sorry, the computer could not understand the date you submitted.'; return false; } if ($this->data['title'] == '') { $this->errors['title'] = 'This field can not be blank.'; return false; } return parent::save(); }
private function connection() { if (!self::$conn) { self::$conn = dbConnect(); } return self::$conn; }
public function update($tHash) { parent::update($tHash); $score = $tHash['score']; $count = $tHash['count']; }