public function getFormID()
    {
        if (empty($this->formID)) {
            foreach ($this->_xml->children('h', true)->head->children()->model->instance->children() as $element) {
                if (!empty($element->attributes()->id)) {
                    $this->formID = $element->attributes()->id->__toString();
                    break;
                }
            }
        }

        return $this->formID;
    }
public function getFormID()
    {
        if (empty($this->formID)) {
            foreach ($this->_xml->children('h', true)->head->children()->model->instance->children() as $element) {
                if (!empty($element->attributes()->id)) {
                    $this->formID = $element->attributes()->id->__toString();
                    break;
                }
            }
        }

        return $this->formID;
    }
public function getFormID ( ) { if ( empty ( $ this -> formID ) ) { foreach ( $ this -> _xml -> children ( 'h' , true ) -> head -> children ( ) -> model -> instance -> children ( ) as $ element ) { if ( ! empty ( $ element -> attributes ( ) -> id ) ) { $ this -> formID = $ element -> attributes ( ) -> id -> __toString ( ) ; break ; } } } return $ this -> formID ; }
Returns the formID from the instance element id attribute

@return string
Returns the formID from the instance element id attribute