public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, NarroProjectCategory::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }
Beispiel #2
0
 public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new NarroProject();
     if (property_exists($objSoapObject, 'ProjectId')) {
         $objToReturn->intProjectId = $objSoapObject->ProjectId;
     }
     if (property_exists($objSoapObject, 'ProjectCategory') && $objSoapObject->ProjectCategory) {
         $objToReturn->ProjectCategory = NarroProjectCategory::GetObjectFromSoapObject($objSoapObject->ProjectCategory);
     }
     if (property_exists($objSoapObject, 'ProjectName')) {
         $objToReturn->strProjectName = $objSoapObject->ProjectName;
     }
     if (property_exists($objSoapObject, 'ProjectType')) {
         $objToReturn->intProjectType = $objSoapObject->ProjectType;
     }
     if (property_exists($objSoapObject, 'ProjectDescription')) {
         $objToReturn->strProjectDescription = $objSoapObject->ProjectDescription;
     }
     if (property_exists($objSoapObject, 'Data')) {
         $objToReturn->strData = $objSoapObject->Data;
     }
     if (property_exists($objSoapObject, 'Active')) {
         $objToReturn->intActive = $objSoapObject->Active;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }