Esempio n. 1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objPackageCategory) {
         $objObject->objPackageCategory = PackageCategory::GetSoapObjectFromObject($objObject->objPackageCategory, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intPackageCategoryId = null;
         }
     }
     if ($objObject->dttLastPostDate) {
         $objObject->dttLastPostDate = $objObject->dttLastPostDate->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->objLastPostedByPerson) {
         $objObject->objLastPostedByPerson = Person::GetSoapObjectFromObject($objObject->objLastPostedByPerson, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intLastPostedByPersonId = null;
         }
     }
     return $objObject;
 }