Cloneable
Instantiable
Methods |
public
__construct
(
string
$validatorName
,
string
$javaScriptFunction
=
''
) Create a custom Abide validator. Steps for use:
|
public getFunctionName () : string |
public
getJavaScript
() :
string
Returns the JavaScript that is added to the page when addAbideValidator is called |
public getValidatorName () : string |
public setJavaScript ( string $javaScriptFunction ) : self |
Properties |
protected bool $addedToPage |
protected string $functionName |
protected string $javaScript |
protected string $validatorName |
Methods |
protected
getJavaScriptTemplate
(
string
$customJavaScript
) :
string
Most validation JavaScript follows a standard pattern:
Local variables available to $customJavaScript
|