예제 #1
0
 /**
  * Add callback request to DB
  *
  * @param $data
  * @return bool
  */
 public function add($data)
 {
     if (!$data) {
         return false;
     }
     $model = new Callback();
     $model->setAttributes($data);
     if ($model->save()) {
         $this->sendNotification($model);
         return true;
     }
     return false;
 }