Exemplo n.º 1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objOperation) {
         $objObject->objOperation = Operation::GetSoapObjectFromObject($objObject->objOperation, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intOperationId = null;
         }
     }
     if ($objObject->objVariable) {
         $objObject->objVariable = Variable::GetSoapObjectFromObject($objObject->objVariable, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intVariableId = null;
         }
     }
     return $objObject;
 }
Exemplo n.º 2
0
 public static function GetSoapArrayFromArray($objArray)
 {
     if (!$objArray) {
         return null;
     }
     $objArrayToReturn = array();
     foreach ($objArray as $objObject) {
         array_push($objArrayToReturn, Operation::GetSoapObjectFromObject($objObject, true));
     }
     return unserialize(serialize($objArrayToReturn));
 }