Beispiel #1
0
 public function addCourse($params)
 {
     if (parent::is_exist(array("title" => $params["title"]))) {
         return -2;
     }
     return parent::create($params) > 0 ? 0 : -1;
 }