HosipLan

Untitled

Oct 4th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. /**
  2.  */
  3. class BMButtonSearchResponseType extends AbstractResponseType
  4. {
  5.  
  6.     /**
  7.      * @array
  8.      * @var ButtonSearchResultType
  9.      */
  10.     public $ButtonSearchResult;
  11.  
  12.  
  13.  
  14.     public function init($arr = null)
  15.     {
  16.         if ($arr != null) {
  17.             parent::init($arr);
  18.             foreach ($arr as $arry) {
  19.                 if (is_array($arry["children"]) && (($arry["children"]) != null)) {
  20.                     $i = 0;
  21.                     while (true) {
  22.                         if ($arry["name"] == "buttonsearchresult[$i]") {
  23.                             $this->ButtonSearchResult[$i] = new ButtonSearchResultType();
  24.                             $this->ButtonSearchResult[$i]->init($arry["children"]);
  25.                         } else {
  26.                             break;
  27.                         }
  28.                         $i++;
  29.                     }
  30.                 }
  31.                 if (is_array($arry["children"]) && (($arry["children"]) != null) && ($arry["name"] == "buttonsearchresult")) {
  32.                     $this->ButtonSearchResult = new ButtonSearchResultType();
  33.                     $this->ButtonSearchResult->init($arry["children"]);
  34.                 }
  35.             }
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment