phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
CustomRule.php
Go to the documentation of this file.
1
<?php
2
namespace
Ajax\semantic\components\validation
;
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
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\traits\JsUtilsActionsTrait\exec
exec($js, $immediatly=false)
Executes the code $js.
Definition
JsUtilsActionsTrait.php:593
Ajax\semantic\components\validation\CustomRule
Ajax\semantic\components\validation$CustomRule This class is part of phpmv-ui.
Definition
CustomRule.php:14
Ajax\semantic\components\validation\CustomRule\$jsFunction
$jsFunction
Definition
CustomRule.php:16
Ajax\semantic\components\validation\CustomRule\compile
compile(JsUtils $js)
Definition
CustomRule.php:23
Ajax\semantic\components\validation\CustomRule\__construct
__construct($type, $jsFunction, $prompt=NULL, $value=NULL)
Definition
CustomRule.php:18
Ajax\semantic\components\validation\Rule
Definition
Rule.php:11
Ajax\semantic\components\validation\Rule\$value
$value
Definition
Rule.php:24
Ajax\semantic\components\validation\Rule\custom
static custom($name, $jsFunction)
Definition
Rule.php:166
Ajax\semantic\components\validation\Rule\getType
getType()
Definition
Rule.php:32
Ajax\semantic\components\validation\Rule\$prompt
$prompt
Definition
Rule.php:19
Ajax\semantic\components\validation\Rule\$type
$type
Definition
Rule.php:15
Ajax\semantic\components\validation
Definition
AjaxRule.php:2
Ajax
semantic
components
validation
CustomRule.php
Generated on Sun Dec 10 2023 16:16:01 for
phpMv-UI
by
doxygen
1.9.8