Exemplo n.º 1
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, Word::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new WordStatusLog();
     if (property_exists($objSoapObject, 'WordStatusLogId')) {
         $objToReturn->intWordStatusLogId = $objSoapObject->WordStatusLogId;
     }
     if (property_exists($objSoapObject, 'Word') && $objSoapObject->Word) {
         $objToReturn->Word = Word::GetObjectFromSoapObject($objSoapObject->Word);
     }
     if (property_exists($objSoapObject, 'StatusTypeId')) {
         $objToReturn->intStatusTypeId = $objSoapObject->StatusTypeId;
     }
     if (property_exists($objSoapObject, 'ChangedBy')) {
         $objToReturn->strChangedBy = $objSoapObject->ChangedBy;
     }
     if (property_exists($objSoapObject, 'ChangedAt')) {
         $objToReturn->dttChangedAt = new QDateTime($objSoapObject->ChangedAt);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new SentLog();
     if (property_exists($objSoapObject, 'WordSentLogId')) {
         $objToReturn->intWordSentLogId = $objSoapObject->WordSentLogId;
     }
     if (property_exists($objSoapObject, 'IpAddress')) {
         $objToReturn->strIpAddress = $objSoapObject->IpAddress;
     }
     if (property_exists($objSoapObject, 'UserAgent')) {
         $objToReturn->strUserAgent = $objSoapObject->UserAgent;
     }
     if (property_exists($objSoapObject, 'DateSent')) {
         $objToReturn->dttDateSent = new QDateTime($objSoapObject->DateSent);
     }
     if (property_exists($objSoapObject, 'Word') && $objSoapObject->Word) {
         $objToReturn->Word = Word::GetObjectFromSoapObject($objSoapObject->Word);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }