public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new NarroFile(); if (property_exists($objSoapObject, 'FileId')) { $objToReturn->intFileId = $objSoapObject->FileId; } if (property_exists($objSoapObject, 'FileName')) { $objToReturn->strFileName = $objSoapObject->FileName; } if (property_exists($objSoapObject, 'FilePath')) { $objToReturn->strFilePath = $objSoapObject->FilePath; } if (property_exists($objSoapObject, 'FileMd5')) { $objToReturn->strFileMd5 = $objSoapObject->FileMd5; } if (property_exists($objSoapObject, 'Parent') && $objSoapObject->Parent) { $objToReturn->Parent = NarroFile::GetObjectFromSoapObject($objSoapObject->Parent); } if (property_exists($objSoapObject, 'TypeId')) { $objToReturn->intTypeId = $objSoapObject->TypeId; } if (property_exists($objSoapObject, 'Project') && $objSoapObject->Project) { $objToReturn->Project = NarroProject::GetObjectFromSoapObject($objSoapObject->Project); } if (property_exists($objSoapObject, 'Active')) { $objToReturn->blnActive = $objSoapObject->Active; } 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, 'Header')) { $objToReturn->strHeader = $objSoapObject->Header; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }
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; }
public static function GetObjectFromSoapObject($objSoapObject) { $objToReturn = new NarroFileProgress(); if (property_exists($objSoapObject, 'FileProgressId')) { $objToReturn->intFileProgressId = $objSoapObject->FileProgressId; } if (property_exists($objSoapObject, 'File') && $objSoapObject->File) { $objToReturn->File = NarroFile::GetObjectFromSoapObject($objSoapObject->File); } if (property_exists($objSoapObject, 'Language') && $objSoapObject->Language) { $objToReturn->Language = NarroLanguage::GetObjectFromSoapObject($objSoapObject->Language); } if (property_exists($objSoapObject, 'FileMd5')) { $objToReturn->strFileMd5 = $objSoapObject->FileMd5; } if (property_exists($objSoapObject, 'Header')) { $objToReturn->strHeader = $objSoapObject->Header; } if (property_exists($objSoapObject, 'TotalTextCount')) { $objToReturn->intTotalTextCount = $objSoapObject->TotalTextCount; } if (property_exists($objSoapObject, 'ApprovedTextCount')) { $objToReturn->intApprovedTextCount = $objSoapObject->ApprovedTextCount; } if (property_exists($objSoapObject, 'FuzzyTextCount')) { $objToReturn->intFuzzyTextCount = $objSoapObject->FuzzyTextCount; } if (property_exists($objSoapObject, 'ProgressPercent')) { $objToReturn->intProgressPercent = $objSoapObject->ProgressPercent; } if (property_exists($objSoapObject, 'Export')) { $objToReturn->blnExport = $objSoapObject->Export; } if (property_exists($objSoapObject, '__blnRestored')) { $objToReturn->__blnRestored = $objSoapObject->__blnRestored; } return $objToReturn; }