Пример #1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objLinkedMarriage) {
         $objObject->objLinkedMarriage = Marriage::GetSoapObjectFromObject($objObject->objLinkedMarriage, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intLinkedMarriageId = null;
         }
     }
     if ($objObject->objPerson) {
         $objObject->objPerson = Person::GetSoapObjectFromObject($objObject->objPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPersonId = null;
         }
     }
     if ($objObject->objMarriedToPerson) {
         $objObject->objMarriedToPerson = Person::GetSoapObjectFromObject($objObject->objMarriedToPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intMarriedToPersonId = null;
         }
     }
     if ($objObject->dttDateStart) {
         $objObject->dttDateStart = $objObject->dttDateStart->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->dttDateEnd) {
         $objObject->dttDateEnd = $objObject->dttDateEnd->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }