original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Generates needed javascript initialization code for client-side conditional logic
  @param integer $intDynamicPosition Dynamic position
  @return string Generated javascript code
docstring_tokens: Generates needed javascript initialization code for client - side conditional logic