protected function conditionsToJs($intDynamicPosition = 0)
    {
        $strReturn = "";

        if ($this->hasConditions() && (count($this->getConditions()) > 0)) {
            /* @var $objCondition \ValidFormBuilder\Condition */
            foreach ($this->getConditions() as $objCondition) {
                $strReturn .= "objForm.addCondition(" . json_encode($objCondition->jsonSerialize($intDynamicPosition)) . ");\n";
            }
        }

        return $strReturn;
    }
protected function conditionsToJs($intDynamicPosition = 0)
    {
        $strReturn = "";

        if ($this->hasConditions() && (count($this->getConditions()) > 0)) {
            /* @var $objCondition \ValidFormBuilder\Condition */
            foreach ($this->getConditions() as $objCondition) {
                $strReturn .= "objForm.addCondition(" . json_encode($objCondition->jsonSerialize($intDynamicPosition)) . ");\n";
            }
        }

        return $strReturn;
    }
protected function conditionsToJs ( $ intDynamicPosition = 0 ) { $ strReturn = "" ; if ( $ this -> hasConditions ( ) && ( count ( $ this -> getConditions ( ) ) > 0 ) ) { /* @var $objCondition \ValidFormBuilder\Condition */ foreach ( $ this -> getConditions ( ) as $ objCondition ) { $ strReturn .= "objForm.addCondition(" . json_encode ( $ objCondition -> jsonSerialize ( $ intDynamicPosition ) ) . ");\n" ; } } return $ strReturn ; }
Generates needed javascript initialization code for client-side conditional logic
@param integer $intDynamicPosition Dynamic position
@return string Generated javascript code
Generates needed javascript initialization code for client - side conditional logic