Exemple #1
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroLog();
     if (property_exists($objSoapObject, 'LogId')) {
         $objToReturn->intLogId = $objSoapObject->LogId;
     }
     if (property_exists($objSoapObject, 'Language') && $objSoapObject->Language) {
         $objToReturn->Language = NarroLanguage::GetObjectFromSoapObject($objSoapObject->Language);
     }
     if (property_exists($objSoapObject, 'Project') && $objSoapObject->Project) {
         $objToReturn->Project = NarroProject::GetObjectFromSoapObject($objSoapObject->Project);
     }
     if (property_exists($objSoapObject, 'User') && $objSoapObject->User) {
         $objToReturn->User = NarroUser::GetObjectFromSoapObject($objSoapObject->User);
     }
     if (property_exists($objSoapObject, 'Message')) {
         $objToReturn->strMessage = $objSoapObject->Message;
     }
     if (property_exists($objSoapObject, 'Priority')) {
         $objToReturn->intPriority = $objSoapObject->Priority;
     }
     if (property_exists($objSoapObject, 'Date')) {
         $objToReturn->dttDate = new QDateTime($objSoapObject->Date);
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
 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 NarroTextComment();
     if (property_exists($objSoapObject, 'TextCommentId')) {
         $objToReturn->intTextCommentId = $objSoapObject->TextCommentId;
     }
     if (property_exists($objSoapObject, 'Text') && $objSoapObject->Text) {
         $objToReturn->Text = NarroText::GetObjectFromSoapObject($objSoapObject->Text);
     }
     if (property_exists($objSoapObject, 'User') && $objSoapObject->User) {
         $objToReturn->User = NarroUser::GetObjectFromSoapObject($objSoapObject->User);
     }
     if (property_exists($objSoapObject, 'Language') && $objSoapObject->Language) {
         $objToReturn->Language = NarroLanguage::GetObjectFromSoapObject($objSoapObject->Language);
     }
     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;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroSuggestion();
     if (property_exists($objSoapObject, 'SuggestionId')) {
         $objToReturn->intSuggestionId = $objSoapObject->SuggestionId;
     }
     if (property_exists($objSoapObject, 'User') && $objSoapObject->User) {
         $objToReturn->User = NarroUser::GetObjectFromSoapObject($objSoapObject->User);
     }
     if (property_exists($objSoapObject, 'Text') && $objSoapObject->Text) {
         $objToReturn->Text = NarroText::GetObjectFromSoapObject($objSoapObject->Text);
     }
     if (property_exists($objSoapObject, 'Language') && $objSoapObject->Language) {
         $objToReturn->Language = NarroLanguage::GetObjectFromSoapObject($objSoapObject->Language);
     }
     if (property_exists($objSoapObject, 'SuggestionValue')) {
         $objToReturn->strSuggestionValue = $objSoapObject->SuggestionValue;
     }
     if (property_exists($objSoapObject, 'SuggestionValueMd5')) {
         $objToReturn->strSuggestionValueMd5 = $objSoapObject->SuggestionValueMd5;
     }
     if (property_exists($objSoapObject, 'SuggestionCharCount')) {
         $objToReturn->intSuggestionCharCount = $objSoapObject->SuggestionCharCount;
     }
     if (property_exists($objSoapObject, 'SuggestionWordCount')) {
         $objToReturn->intSuggestionWordCount = $objSoapObject->SuggestionWordCount;
     }
     if (property_exists($objSoapObject, 'HasComments')) {
         $objToReturn->blnHasComments = $objSoapObject->HasComments;
     }
     if (property_exists($objSoapObject, 'IsImported')) {
         $objToReturn->blnIsImported = $objSoapObject->IsImported;
     }
     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;
 }
Exemple #5
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, NarroUser::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroUserRole();
     if (property_exists($objSoapObject, 'UserRoleId')) {
         $objToReturn->intUserRoleId = $objSoapObject->UserRoleId;
     }
     if (property_exists($objSoapObject, 'User') && $objSoapObject->User) {
         $objToReturn->User = NarroUser::GetObjectFromSoapObject($objSoapObject->User);
     }
     if (property_exists($objSoapObject, 'Role') && $objSoapObject->Role) {
         $objToReturn->Role = NarroRole::GetObjectFromSoapObject($objSoapObject->Role);
     }
     if (property_exists($objSoapObject, 'Project') && $objSoapObject->Project) {
         $objToReturn->Project = NarroProject::GetObjectFromSoapObject($objSoapObject->Project);
     }
     if (property_exists($objSoapObject, 'Language') && $objSoapObject->Language) {
         $objToReturn->Language = NarroLanguage::GetObjectFromSoapObject($objSoapObject->Language);
     }
     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;
 }