public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objParentPagerIndividual) { $objObject->objParentPagerIndividual = ParentPagerIndividual::GetSoapObjectFromObject($objObject->objParentPagerIndividual, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentPagerIndividualId = null; } } if ($objObject->objParentPagerStation) { $objObject->objParentPagerStation = ParentPagerStation::GetSoapObjectFromObject($objObject->objParentPagerStation, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentPagerStationId = null; } } if ($objObject->objParentPagerPeriod) { $objObject->objParentPagerPeriod = ParentPagerPeriod::GetSoapObjectFromObject($objObject->objParentPagerPeriod, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentPagerPeriodId = null; } } if ($objObject->objParentPagerProgram) { $objObject->objParentPagerProgram = ParentPagerProgram::GetSoapObjectFromObject($objObject->objParentPagerProgram, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentPagerProgramId = null; } } if ($objObject->dttDateIn) { $objObject->dttDateIn = $objObject->dttDateIn->__toString(QDateTime::FormatSoap); } if ($objObject->dttDateOut) { $objObject->dttDateOut = $objObject->dttDateOut->__toString(QDateTime::FormatSoap); } return $objObject; }
public static function GetSoapArrayFromArray($objArray) { if (!$objArray) { return null; } $objArrayToReturn = array(); foreach ($objArray as $objObject) { array_push($objArrayToReturn, ParentPagerProgram::GetSoapObjectFromObject($objObject, true)); } return unserialize(serialize($objArrayToReturn)); }