public function getInputHtml()
    {
        $this->rule->setElementName($this->element->getName());

        if ($this->element->getValue()) {
            /* Hack : reload in a new instance to have element name set.
             *        can not be done in afterLoad of the backend model
             *        since we do not know yet the form structure
             */
            $conditions = $this->element->getValue();
            if (!is_array($conditions)) {
                $conditions = $conditions->getConditions()->asArray();
            }
            $this->rule->getConditions()->loadArray($conditions);
            $this->element->setRule($this->rule);
        }

        $this->input = $this->elementFactory->create('text');
        $this->input->setRule($this->rule)->setRenderer($this->conditions);

        $this->setConditionFormName($this->rule->getConditions(), $this->getElement()->getContainer()->getHtmlId());

        if (is_array($this->getData('url_params'))) {
            $this->setConditionUrlParams($this->rule->getConditions(), $this->getData('url_params'));
        }

        return $this->input->toHtml();
    }
public function getInputHtml()
    {
        $this->rule->setElementName($this->element->getName());

        if ($this->element->getValue()) {
            /* Hack : reload in a new instance to have element name set.
             *        can not be done in afterLoad of the backend model
             *        since we do not know yet the form structure
             */
            $conditions = $this->element->getValue();
            if (!is_array($conditions)) {
                $conditions = $conditions->getConditions()->asArray();
            }
            $this->rule->getConditions()->loadArray($conditions);
            $this->element->setRule($this->rule);
        }

        $this->input = $this->elementFactory->create('text');
        $this->input->setRule($this->rule)->setRenderer($this->conditions);

        $this->setConditionFormName($this->rule->getConditions(), $this->getElement()->getContainer()->getHtmlId());

        if (is_array($this->getData('url_params'))) {
            $this->setConditionUrlParams($this->rule->getConditions(), $this->getData('url_params'));
        }

        return $this->input->toHtml();
    }
public function getInputHtml ( ) { $ this -> rule -> setElementName ( $ this -> element -> getName ( ) ) ; if ( $ this -> element -> getValue ( ) ) { /* Hack : reload in a new instance to have element name set.
             *        can not be done in afterLoad of the backend model
             *        since we do not know yet the form structure
             */ $ conditions = $ this -> element -> getValue ( ) ; if ( ! is_array ( $ conditions ) ) { $ conditions = $ conditions -> getConditions ( ) -> asArray ( ) ; } $ this -> rule -> getConditions ( ) -> loadArray ( $ conditions ) ; $ this -> element -> setRule ( $ this -> rule ) ; } $ this -> input = $ this -> elementFactory -> create ( 'text' ) ; $ this -> input -> setRule ( $ this -> rule ) -> setRenderer ( $ this -> conditions ) ; $ this -> setConditionFormName ( $ this -> rule -> getConditions ( ) , $ this -> getElement ( ) -> getContainer ( ) -> getHtmlId ( ) ) ; if ( is_array ( $ this -> getData ( 'url_params' ) ) ) { $ this -> setConditionUrlParams ( $ this -> rule -> getConditions ( ) , $ this -> getData ( 'url_params' ) ) ; } return $ this -> input -> toHtml ( ) ; }
Render HTML of the element using the rule engine.

@return string
Render HTML of the element using the rule engine .