예제 #1
0
 public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects)
 {
     if ($objObject->objSearchQuery) {
         $objObject->objSearchQuery = SearchQuery::GetSoapObjectFromObject($objObject->objSearchQuery, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intSearchQueryId = null;
         }
     }
     if ($objObject->objOrQueryCondition) {
         $objObject->objOrQueryCondition = QueryCondition::GetSoapObjectFromObject($objObject->objOrQueryCondition, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intOrQueryConditionId = null;
         }
     }
     if ($objObject->objQueryOperation) {
         $objObject->objQueryOperation = QueryOperation::GetSoapObjectFromObject($objObject->objQueryOperation, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intQueryOperationId = null;
         }
     }
     if ($objObject->objQueryNode) {
         $objObject->objQueryNode = QueryNode::GetSoapObjectFromObject($objObject->objQueryNode, false);
     } else {
         if (!$blnBindRelatedObjects) {
             $objObject->intQueryNodeId = null;
         }
     }
     return $objObject;
 }