Created
          May 14, 2013 08:52 
        
      - 
      
- 
        Save julianwachholz/5574597 to your computer and use it in GitHub Desktop. 
    you've got to be fucking kidding me.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (is_array($soapResultObject->Body->ExecuteResponse->ExecuteResult->Results->KeyValuePairOfstringanyType->value->Entities->Entity)) { | |
| foreach ($soapResultObject->Body->ExecuteResponse->ExecuteResult->Results->KeyValuePairOfstringanyType->value->Entities->Entity as $entity) { | |
| $entities_array[] = $this->findByUid($entity->LogicalName->LogicalName, $entity->Id->Id, $convertToClass); | |
| } | |
| } elseif (isset($soapResultObject->Body->ExecuteResponse->ExecuteResult->Results->KeyValuePairOfstringanyType->value->Entities->Entity)) { | |
| $entity = $soapResultObject->Body->ExecuteResponse->ExecuteResult->Results->KeyValuePairOfstringanyType->value->Entities->Entity; | |
| $entities_array[] = $this->findByUid($entity->LogicalName->LogicalName, $entity->Id->Id, $convertToClass); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment