Ejemplo n.º 1
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new DlePoll();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'News') && $objSoapObject->News) {
         $objToReturn->News = DlePost::GetObjectFromSoapObject($objSoapObject->News);
     }
     if (property_exists($objSoapObject, 'Title')) {
         $objToReturn->strTitle = $objSoapObject->Title;
     }
     if (property_exists($objSoapObject, 'Frage')) {
         $objToReturn->strFrage = $objSoapObject->Frage;
     }
     if (property_exists($objSoapObject, 'Body')) {
         $objToReturn->strBody = $objSoapObject->Body;
     }
     if (property_exists($objSoapObject, 'Votes')) {
         $objToReturn->intVotes = $objSoapObject->Votes;
     }
     if (property_exists($objSoapObject, 'Multiple')) {
         $objToReturn->blnMultiple = $objSoapObject->Multiple;
     }
     if (property_exists($objSoapObject, 'Answer')) {
         $objToReturn->strAnswer = $objSoapObject->Answer;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Ejemplo n.º 2
0
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, DlePost::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
Ejemplo n.º 3
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new DleTags();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'News') && $objSoapObject->News) {
         $objToReturn->News = DlePost::GetObjectFromSoapObject($objSoapObject->News);
     }
     if (property_exists($objSoapObject, 'Tag')) {
         $objToReturn->strTag = $objSoapObject->Tag;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
Ejemplo n.º 4
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new DleComments();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'Post') && $objSoapObject->Post) {
         $objToReturn->Post = DlePost::GetObjectFromSoapObject($objSoapObject->Post);
     }
     if (property_exists($objSoapObject, 'User') && $objSoapObject->User) {
         $objToReturn->User = DleUsers::GetObjectFromSoapObject($objSoapObject->User);
     }
     if (property_exists($objSoapObject, 'Date')) {
         $objToReturn->dttDate = new QDateTime($objSoapObject->Date);
     }
     if (property_exists($objSoapObject, 'Autor')) {
         $objToReturn->strAutor = $objSoapObject->Autor;
     }
     if (property_exists($objSoapObject, 'Email')) {
         $objToReturn->strEmail = $objSoapObject->Email;
     }
     if (property_exists($objSoapObject, 'Text')) {
         $objToReturn->strText = $objSoapObject->Text;
     }
     if (property_exists($objSoapObject, 'Ip')) {
         $objToReturn->strIp = $objSoapObject->Ip;
     }
     if (property_exists($objSoapObject, 'IsRegister')) {
         $objToReturn->blnIsRegister = $objSoapObject->IsRegister;
     }
     if (property_exists($objSoapObject, 'Approve')) {
         $objToReturn->blnApprove = $objSoapObject->Approve;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }