コード例 #1
0
ファイル: ContractDeals.php プロジェクト: jaccos/wrkmtspr_prd
 public static function newContractDeal($eventMdl, $city = '', $location = '', $aanvangstijd = '')
 {
     $modelCd = new ContractDeals();
     $modelCd->event_id = $eventMdl->id;
     $modelCd->user_id = $eventMdl->user_id;
     $modelCd->code_title_current = $eventMdl->code_title;
     $modelCd->code_title_prev = $modelCd->getPrevCodeTitle($eventMdl->code_title);
     $modelCd->approximated_by = Yii::$app->user->id;
     $modelCd->description = $modelCd->getEventDescription($eventMdl->code_title);
     $modelCd->location = $location;
     $modelCd->city = $city;
     $modelCd->aanvangstijd = $aanvangstijd;
     $modelCd->save(false);
 }