Exemplo n.º 1
0
 public function compileBuilderFuntcionName(Twig_Compiler $compiler)
 {
     if ($this->getNode('values')->hasNode('withValidation') && $this->getNodeValue('withValidation')) {
         $compiler->raw('->ajaxSubmit()');
     } else {
         parent::compileBuilderFuntcionName($compiler);
     }
 }
 public function compileBuilderFuntcionName(Twig_Compiler $compiler)
 {
     if ($this->isTimepicker()) {
         $compiler->raw('->timepicker()');
     } elseif ($this->isRangepicker()) {
         $compiler->raw('->daterangepicker()');
     } else {
         parent::compileBuilderFuntcionName($compiler);
     }
 }
Exemplo n.º 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);
     }
 }