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 Class Reference

Ajax\semantic\components\validation$CustomRule This class is part of phpmv-ui. More...

+ Inheritance diagram for CustomRule:

Public Member Functions

 __construct ($type, $jsFunction, $prompt=NULL, $value=NULL)
 
 compile (JsUtils $js)
 
- Public Member Functions inherited from Rule
 __construct ($type, $prompt=NULL, $value=NULL)
 
 getType ()
 
 setType ($type)
 
 getPrompt ()
 
 setPrompt ($prompt)
 
 getValue ()
 
 setValue ($value)
 
 jsonSerialize ()
 

Protected Attributes

 $jsFunction
 

Additional Inherited Members

- Static Public Member Functions inherited from Rule
static match ($name, $prompt=NULL)
 A field should match the value of another validation field, for example to confirm passwords.
 
static different ($name, $prompt=NULL)
 A field should be different than another specified field.
 
static integer ($min=NULL, $max=NULL, $prompt=NULL)
 A field is an integer value, or matches an integer range.
 
static decimal ($prompt=NULL)
 
static number ($prompt=NULL)
 
static is ($value, $prompt=NULL)
 
static isExactly ($value, $prompt=NULL)
 
static not ($value, $prompt=NULL)
 
static notExactly ($value, $prompt=NULL)
 
static contains ($value, $prompt=NULL)
 
static containsExactly ($value, $prompt=NULL)
 
static doesntContain ($value, $prompt=NULL)
 
static doesntContainExactly ($value, $prompt=NULL)
 
static minCount ($value, $prompt=NULL)
 
static maxCount ($value, $prompt=NULL)
 
static exactCount ($value, $prompt=NULL)
 
static email ($prompt=NULL)
 
static url ($prompt=NULL)
 
static regExp ($value, $prompt=NULL)
 
static custom ($name, $jsFunction)
 
static ajax (JsUtils $js, $name, $url, $params, $jsCallback, $method="post", $parameters=[])
 

Detailed Description

Ajax\semantic\components\validation$CustomRule This class is part of phpmv-ui.

Author
jc
Version
1.0.0

Definition at line 14 of file CustomRule.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $type,
  $jsFunction,
  $prompt = NULL,
  $value = NULL 
)

Definition at line 18 of file CustomRule.php.

Member Function Documentation

◆ compile()

compile ( JsUtils  $js)

Reimplemented in AjaxRule.

Definition at line 23 of file CustomRule.php.

Field Documentation

◆ $jsFunction

$jsFunction
protected

Definition at line 16 of file CustomRule.php.


The documentation for this class was generated from the following file: