phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Javascript Class Reference

Static Public Member Functions

static draggable ($attr="id")
 
static dropZone ($jqueryDone, $jsCallback="")
 
static fileDropZone ($jsCallback="")
 
static containsCode ($expression)
 
static isFunction ($jsCode)
 
static fileUploadBehavior ($id='')
 
static prep_element ($element)
 Puts HTML element in quotes for use in jQuery code unless the supplied element is the Javascript 'this' object, in which case no quotes are added.
 
static prep_value ($value)
 Puts HTML values in quotes for use in jQuery code unless the supplied value contains the Javascript 'this' or 'event' object, in which case no quotes are added.
 
static prep_jquery_selector ($value)
 

Static Public Attributes

static $preventDefault = "\nif(event && event.preventDefault) event.preventDefault();\n"
 
static $stopPropagation = "\nif(event && event.stopPropagation) event.stopPropagation();\n"
 

Detailed Description

Definition at line 4 of file Javascript.php.

Member Function Documentation

◆ containsCode()

static containsCode (   $expression)
static

Definition at line 24 of file Javascript.php.

◆ draggable()

static draggable (   $attr = "id")
static

Definition at line 10 of file Javascript.php.

◆ dropZone()

static dropZone (   $jqueryDone,
  $jsCallback = "" 
)
static

Definition at line 14 of file Javascript.php.

◆ fileDropZone()

static fileDropZone (   $jsCallback = "")
static

Definition at line 19 of file Javascript.php.

◆ fileUploadBehavior()

static fileUploadBehavior (   $id = '')
static

Definition at line 35 of file Javascript.php.

◆ isFunction()

static isFunction (   $jsCode)
static

Definition at line 31 of file Javascript.php.

◆ prep_element()

static prep_element (   $element)
static

Puts HTML element in quotes for use in jQuery code unless the supplied element is the Javascript 'this' object, in which case no quotes are added.

Parameters
string$element
Returns
string

Definition at line 48 of file Javascript.php.

◆ prep_jquery_selector()

static prep_jquery_selector (   $value)
static

Definition at line 80 of file Javascript.php.

◆ prep_value()

static prep_value (   $value)
static

Puts HTML values in quotes for use in jQuery code unless the supplied value contains the Javascript 'this' or 'event' object, in which case no quotes are added.

Parameters
string$value
Returns
string

Definition at line 63 of file Javascript.php.

Field Documentation

◆ $preventDefault

$preventDefault = "\nif(event && event.preventDefault) event.preventDefault();\n"
static

Definition at line 6 of file Javascript.php.

◆ $stopPropagation

$stopPropagation = "\nif(event && event.stopPropagation) event.stopPropagation();\n"
static

Definition at line 8 of file Javascript.php.


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