protected function liefhierarchy_parse_options(array $options) {
		foreach ($options as $key => $label) {
			if (is_array($label)) {
				$option = \ran\HTMLTag::i($this->confs, 'option', $key)
					->set('disabled', '');

				$this->appendtagbody($option->render());
				$this->liefhierarchy_parse_options($label);
			}
			else { # $value not array
				$option = \ran\HTMLTag::i($this->confs, 'option', $label)
					->set('value', $key);

				if ($this->values !== null && in_array(strval($key), $this->values, false)) {
					$option->set('selected', '');
				}

				$this->appendtagbody($option->render());
			}
		}
	}
protected function liefhierarchy_parse_options(array $options) {
		foreach ($options as $key => $label) {
			if (is_array($label)) {
				$option = \ran\HTMLTag::i($this->confs, 'option', $key)
					->set('disabled', '');

				$this->appendtagbody($option->render());
				$this->liefhierarchy_parse_options($label);
			}
			else { # $value not array
				$option = \ran\HTMLTag::i($this->confs, 'option', $label)
					->set('value', $key);

				if ($this->values !== null && in_array(strval($key), $this->values, false)) {
					$option->set('selected', '');
				}

				$this->appendtagbody($option->render());
			}
		}
	}
protected function liefhierarchy_parse_options ( array $ options ) { foreach ( $ options as $ key => $ label ) { if ( is_array ( $ label ) ) { $ option = \ ran \ HTMLTag :: i ( $ this -> confs , 'option' , $ key ) -> set ( 'disabled' , '' ) ; $ this -> appendtagbody ( $ option -> render ( ) ) ; $ this -> liefhierarchy_parse_options ( $ label ) ; } else { # $value not array $ option = \ ran \ HTMLTag :: i ( $ this -> confs , 'option' , $ label ) -> set ( 'value' , $ key ) ; if ( $ this -> values !== null && in_array ( strval ( $ key ) , $ this -> values , false ) ) { $ option -> set ( 'selected' , '' ) ; } $ this -> appendtagbody ( $ option -> render ( ) ) ; } } }
Parses hierarchy input array.
Parses hierarchy input array .