phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
CustomRule.php
Go to the documentation of this file.
1 <?php
3 
4 use Ajax\JsUtils;
5 
14 class CustomRule extends Rule {
15 
16  protected $jsFunction;
17 
18  public function __construct($type, $jsFunction, $prompt = NULL, $value = NULL) {
19  parent::__construct($type, $prompt, $value);
20  $this->jsFunction = $jsFunction;
21  }
22 
23  public function compile(JsUtils $js) {
24  $js->exec(Rule::custom($this->getType(), $this->jsFunction), true);
25  }
26 }
static custom($name, $jsFunction)
Definition: Rule.php:166
JQuery PHP library.
Definition: JsUtils.php:23
Ajax$CustomRule This class is part of phpmv-ui.
Definition: CustomRule.php:14
__construct($type, $jsFunction, $prompt=NULL, $value=NULL)
Definition: CustomRule.php:18