public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new RoleEntityQtypeCustomFieldAuthorization();
     if (property_exists($objSoapObject, 'RoleEntityQtypeCustomFieldAuthorizationId')) {
         $objToReturn->intRoleEntityQtypeCustomFieldAuthorizationId = $objSoapObject->RoleEntityQtypeCustomFieldAuthorizationId;
     }
     if (property_exists($objSoapObject, 'Role') && $objSoapObject->Role) {
         $objToReturn->Role = Role::GetObjectFromSoapObject($objSoapObject->Role);
     }
     if (property_exists($objSoapObject, 'EntityQtypeCustomField') && $objSoapObject->EntityQtypeCustomField) {
         $objToReturn->EntityQtypeCustomField = EntityQtypeCustomField::GetObjectFromSoapObject($objSoapObject->EntityQtypeCustomField);
     }
     if (property_exists($objSoapObject, 'Authorization') && $objSoapObject->Authorization) {
         $objToReturn->Authorization = Authorization::GetObjectFromSoapObject($objSoapObject->Authorization);
     }
     if (property_exists($objSoapObject, 'AuthorizedFlag')) {
         $objToReturn->blnAuthorizedFlag = $objSoapObject->AuthorizedFlag;
     }
     if (property_exists($objSoapObject, 'CreatedByObject') && $objSoapObject->CreatedByObject) {
         $objToReturn->CreatedByObject = UserAccount::GetObjectFromSoapObject($objSoapObject->CreatedByObject);
     }
     if (property_exists($objSoapObject, 'CreationDate')) {
         $objToReturn->dttCreationDate = new QDateTime($objSoapObject->CreationDate);
     }
     if (property_exists($objSoapObject, 'ModifiedByObject') && $objSoapObject->ModifiedByObject) {
         $objToReturn->ModifiedByObject = UserAccount::GetObjectFromSoapObject($objSoapObject->ModifiedByObject);
     }
     if (property_exists($objSoapObject, 'ModifiedDate')) {
         $objToReturn->strModifiedDate = $objSoapObject->ModifiedDate;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, EntityQtypeCustomField::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }