예제 #1
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, ClassifiedCategory::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }
예제 #2
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objClassifiedCategory) {
         $objObject->objClassifiedCategory = ClassifiedCategory::GetSoapObjectFromObject($objObject->objClassifiedCategory, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intClassifiedCategoryId = null;
         }
     }
     if ($objObject->dttDatePosted) {
         $objObject->dttDatePosted = $objObject->dttDatePosted->__toString(QDateTime::FormatSoap);
     }
     if ($objObject->dttDateExpired) {
         $objObject->dttDateExpired = $objObject->dttDateExpired->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }