public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroSuggestionVote();
     if (property_exists($objSoapObject, 'Suggestion') && $objSoapObject->Suggestion) {
         $objToReturn->Suggestion = NarroSuggestion::GetObjectFromSoapObject($objSoapObject->Suggestion);
     }
     if (property_exists($objSoapObject, 'Context') && $objSoapObject->Context) {
         $objToReturn->Context = NarroContext::GetObjectFromSoapObject($objSoapObject->Context);
     }
     if (property_exists($objSoapObject, 'User') && $objSoapObject->User) {
         $objToReturn->User = NarroUser::GetObjectFromSoapObject($objSoapObject->User);
     }
     if (property_exists($objSoapObject, 'VoteValue')) {
         $objToReturn->intVoteValue = $objSoapObject->VoteValue;
     }
     if (property_exists($objSoapObject, 'Created')) {
         $objToReturn->dttCreated = new QDateTime($objSoapObject->Created);
     }
     if (property_exists($objSoapObject, 'Modified')) {
         $objToReturn->dttModified = new QDateTime($objSoapObject->Modified);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroContextInfo();
     if (property_exists($objSoapObject, 'ContextInfoId')) {
         $objToReturn->intContextInfoId = $objSoapObject->ContextInfoId;
     }
     if (property_exists($objSoapObject, 'Context') && $objSoapObject->Context) {
         $objToReturn->Context = NarroContext::GetObjectFromSoapObject($objSoapObject->Context);
     }
     if (property_exists($objSoapObject, 'Language') && $objSoapObject->Language) {
         $objToReturn->Language = NarroLanguage::GetObjectFromSoapObject($objSoapObject->Language);
     }
     if (property_exists($objSoapObject, 'ValidatorUser') && $objSoapObject->ValidatorUser) {
         $objToReturn->ValidatorUser = NarroUser::GetObjectFromSoapObject($objSoapObject->ValidatorUser);
     }
     if (property_exists($objSoapObject, 'ValidSuggestion') && $objSoapObject->ValidSuggestion) {
         $objToReturn->ValidSuggestion = NarroSuggestion::GetObjectFromSoapObject($objSoapObject->ValidSuggestion);
     }
     if (property_exists($objSoapObject, 'HasSuggestions')) {
         $objToReturn->blnHasSuggestions = $objSoapObject->HasSuggestions;
     }
     if (property_exists($objSoapObject, 'SuggestionAccessKey')) {
         $objToReturn->strSuggestionAccessKey = $objSoapObject->SuggestionAccessKey;
     }
     if (property_exists($objSoapObject, 'SuggestionCommandKey')) {
         $objToReturn->strSuggestionCommandKey = $objSoapObject->SuggestionCommandKey;
     }
     if (property_exists($objSoapObject, 'Created')) {
         $objToReturn->dttCreated = new QDateTime($objSoapObject->Created);
     }
     if (property_exists($objSoapObject, 'Modified')) {
         $objToReturn->dttModified = new QDateTime($objSoapObject->Modified);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Example #3
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, NarroContext::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroContextComment();
     if (property_exists($objSoapObject, 'CommentId')) {
         $objToReturn->intCommentId = $objSoapObject->CommentId;
     }
     if (property_exists($objSoapObject, 'Context') && $objSoapObject->Context) {
         $objToReturn->Context = NarroContext::GetObjectFromSoapObject($objSoapObject->Context);
     }
     if (property_exists($objSoapObject, 'Created')) {
         $objToReturn->dttCreated = new QDateTime($objSoapObject->Created);
     }
     if (property_exists($objSoapObject, 'Modified')) {
         $objToReturn->dttModified = new QDateTime($objSoapObject->Modified);
     }
     if (property_exists($objSoapObject, 'CommentText')) {
         $objToReturn->strCommentText = $objSoapObject->CommentText;
     }
     if (property_exists($objSoapObject, 'CommentTextMd5')) {
         $objToReturn->strCommentTextMd5 = $objSoapObject->CommentTextMd5;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }