예제 #1
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroContext();
     if (property_exists($objSoapObject, 'ContextId')) {
         $objToReturn->intContextId = $objSoapObject->ContextId;
     }
     if (property_exists($objSoapObject, 'Text') && $objSoapObject->Text) {
         $objToReturn->Text = NarroText::GetObjectFromSoapObject($objSoapObject->Text);
     }
     if (property_exists($objSoapObject, 'TextAccessKey')) {
         $objToReturn->strTextAccessKey = $objSoapObject->TextAccessKey;
     }
     if (property_exists($objSoapObject, 'TextCommandKey')) {
         $objToReturn->strTextCommandKey = $objSoapObject->TextCommandKey;
     }
     if (property_exists($objSoapObject, 'Project') && $objSoapObject->Project) {
         $objToReturn->Project = NarroProject::GetObjectFromSoapObject($objSoapObject->Project);
     }
     if (property_exists($objSoapObject, 'Context')) {
         $objToReturn->strContext = $objSoapObject->Context;
     }
     if (property_exists($objSoapObject, 'ContextMd5')) {
         $objToReturn->strContextMd5 = $objSoapObject->ContextMd5;
     }
     if (property_exists($objSoapObject, 'Comment')) {
         $objToReturn->strComment = $objSoapObject->Comment;
     }
     if (property_exists($objSoapObject, 'CommentMd5')) {
         $objToReturn->strCommentMd5 = $objSoapObject->CommentMd5;
     }
     if (property_exists($objSoapObject, 'File') && $objSoapObject->File) {
         $objToReturn->File = NarroFile::GetObjectFromSoapObject($objSoapObject->File);
     }
     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, 'Active')) {
         $objToReturn->blnActive = $objSoapObject->Active;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
예제 #2
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, NarroText::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }