コード例 #1
0
 public function compileBuilderFuntcionName(Twig_Compiler $compiler)
 {
     if ($this->getNode('values')->hasNode('withValidation') && $this->getNodeValue('withValidation')) {
         $compiler->raw('->ajaxSubmit()');
     } else {
         parent::compileBuilderFuntcionName($compiler);
     }
 }
コード例 #2
0
 public function compileBuilderFuntcionName(Twig_Compiler $compiler)
 {
     if ($this->isTimepicker()) {
         $compiler->raw('->timepicker()');
     } elseif ($this->isRangepicker()) {
         $compiler->raw('->daterangepicker()');
     } else {
         parent::compileBuilderFuntcionName($compiler);
     }
 }
コード例 #3
0
 public function compileBuilderFuntcionName(Twig_Compiler $compiler)
 {
     if ($this->getNode('values')->hasNode('qwerty') && $this->getNodeValue('qwerty')) {
         $compiler->raw('->qwerty()');
     } elseif ($this->getNode('values')->hasNode('alphabetic') && $this->getNodeValue('alphabetic')) {
         $compiler->raw('->alphabetic()');
     } else {
         parent::compileBuilderFuntcionName($compiler);
     }
 }