Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- */
- class BMButtonSearchResponseType extends AbstractResponseType
- {
- /**
- * @array
- * @var ButtonSearchResultType
- */
- public $ButtonSearchResult;
- public function init($arr = null)
- {
- if ($arr != null) {
- parent::init($arr);
- foreach ($arr as $arry) {
- if (is_array($arry["children"]) && (($arry["children"]) != null)) {
- $i = 0;
- while (true) {
- if ($arry["name"] == "buttonsearchresult[$i]") {
- $this->ButtonSearchResult[$i] = new ButtonSearchResultType();
- $this->ButtonSearchResult[$i]->init($arry["children"]);
- } else {
- break;
- }
- $i++;
- }
- }
- if (is_array($arry["children"]) && (($arry["children"]) != null) && ($arry["name"] == "buttonsearchresult")) {
- $this->ButtonSearchResult = new ButtonSearchResultType();
- $this->ButtonSearchResult->init($arry["children"]);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment