public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objWord) {
         $objObject->objWord = Word::GetSoapObjectFromObject($objObject->objWord, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intWordId = null;
         }
     }
     if ($objObject->dttChangedAt) {
         $objObject->dttChangedAt = $objObject->dttChangedAt->__toString(QDateTime::FormatSoap);
     }
     return $objObject;
 }
Пример #2
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, Word::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }