Beispiel #1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objSignupForm) {
         $objObject->objSignupForm = SignupForm::GetSoapObjectFromObject($objObject->objSignupForm, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSignupFormId = null;
         }
     }
     if ($objObject->objPerson) {
         $objObject->objPerson = Person::GetSoapObjectFromObject($objObject->objPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPersonId = null;
         }
     }
     if ($objObject->objSignupByPerson) {
         $objObject->objSignupByPerson = Person::GetSoapObjectFromObject($objObject->objSignupByPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSignupByPersonId = null;
         }
     }
     if ($objObject->dttDateCreated) {
         $objObject->dttDateCreated = $objObject->dttDateCreated->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->dttDateSubmitted) {
         $objObject->dttDateSubmitted = $objObject->dttDateSubmitted->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objCommunicationsEntry) {
         $objObject->objCommunicationsEntry = CommunicationListEntry::GetSoapObjectFromObject($objObject->objCommunicationsEntry, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intCommunicationsEntryId = null;
         }
     }
     return $objObject;
 }
Beispiel #2
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objSignupForm) {
         $objObject->objSignupForm = SignupForm::GetSoapObjectFromObject($objObject->objSignupForm, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSignupFormId = null;
         }
     }
     if ($objObject->dttDateStart) {
         $objObject->dttDateStart = $objObject->dttDateStart->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->dttDateEnd) {
         $objObject->dttDateEnd = $objObject->dttDateEnd->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }
Beispiel #3
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objSignupForm) {
         $objObject->objSignupForm = SignupForm::GetSoapObjectFromObject($objObject->objSignupForm, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSignupFormId = null;
         }
     }
     return $objObject;
 }
Beispiel #4
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, SignupForm::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }