コード例 #1
0
 /**
  * Writes the answer to the database, either updating it
  * when it already exists, or inserting it when it doesn't.
  * 
  * @since 0.1
  * 
  * @return boolean Success indicator
  */
 public function writeToDB()
 {
     $success = parent::writeToDB();
     if ($success) {
         $this->writeAnswersToDB();
     }
     return $success;
 }
コード例 #2
0
ファイル: Survey.class.php プロジェクト: Tjorriemorrie/app
 /**
  * Writes the surveyand it's questions to the database, either updating it
  * when it already exists, or inserting it when it doesn't.
  * 
  * @since 0.1
  * 
  * @return boolean Success indicator
  */
 public function writeToDB()
 {
     $success = parent::writeToDB();
     if ($success) {
         $success = $this->writeQuestionsToDB();
     }
     return $success;
 }