/** * (non-PHPdoc) * @see ContestDBObject::insertIntoDB() * @return bool */ protected function insertIntoDB() { wfRunHooks('ContestBeforeContestantInsert', array(&$this)); $success = parent::insertIntoDB(); if ($success) { $this->onUserSignup(); } return $success; }
/** * (non-PHPdoc) * @see ContestDBObject::insertIntoDB() * @return bool */ protected function insertIntoDB() { $success = parent::insertIntoDB(); if ($success) { $contestant = new ContestContestant(array('id' => $this->getField('contestant_id'))); $contestant->addToField('comments', 1); } return $success; }