public function addChoice(\DOMElement $node) {
		if($node->nodeName != 'input')
			return;
		$inputValue = $node->getAttribute('value');
		$this->choices[] = $inputValue;
		switch($node->getAttribute('type')) {
			case 'radio':
				if($node->getAttribute('checked') == 'checked')
					$this->value = $inputValue;
				break;
			case 'checkbox':
				if($node->getAttribute('checked') == 'checked')
					$this->value = $inputValue;
				break;
		}
	}
public function addChoice(\DOMElement $node) {
		if($node->nodeName != 'input')
			return;
		$inputValue = $node->getAttribute('value');
		$this->choices[] = $inputValue;
		switch($node->getAttribute('type')) {
			case 'radio':
				if($node->getAttribute('checked') == 'checked')
					$this->value = $inputValue;
				break;
			case 'checkbox':
				if($node->getAttribute('checked') == 'checked')
					$this->value = $inputValue;
				break;
		}
	}
public function addChoice ( \ DOMElement $ node ) { if ( $ node -> nodeName != 'input' ) return ; $ inputValue = $ node -> getAttribute ( 'value' ) ; $ this -> choices [ ] = $ inputValue ; switch ( $ node -> getAttribute ( 'type' ) ) { case 'radio' : if ( $ node -> getAttribute ( 'checked' ) == 'checked' ) $ this -> value = $ inputValue ; break ; case 'checkbox' : if ( $ node -> getAttribute ( 'checked' ) == 'checked' ) $ this -> value = $ inputValue ; break ; } }
Add a choice to the field.
@param \DOMElement $node
Add a choice to the field .