Example #1
0
 /**
  * Creates calendar user in storage.
  * 
  * @param CCalUser &$oCalUser CCalUser object.
  * 
  * @return bool
  */
 public function createCalUser(CCalUser &$oCalUser)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->createCalUserQuery($oCalUser))) {
         $oCalUser->IdCalUser = $this->oConnection->GetLastInsertId('acal_users_data', 'settings_id');
         $bResult = true;
     }
     $this->throwDbExceptionIfExist();
     return $bResult;
 }