phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Data Structures | |
class | DataTable |
DataTable widget for displaying list of objects. More... | |
class | JsonDataTable |
class | Pagination |
class | PositionInTable |
Functions | |
addField ($field, $key=null) | |
insertField ($index, $field, $key=null) | |
insertInField ($index, $field, $key=null) | |
fieldAs ($index, $type, $attributes=NULL) | |
cleanIdentifier ($id) | |
_fieldAs ($elementCallback, &$index, $attributes=NULL, $prefix=null) | |
getFieldButtonCallable ($caption, $visibleHover=true, $callback=null) | |
getCallable ($thisCallback, $parameters, $callback=null) | |
getFieldButton ($caption, $visibleHover=true, $icon=null) | |
getFieldButtons ($buttons, $visibleHover=true) | |
fieldAsSubmit ($index, $cssStyle=NULL, $url=NULL, $responseElement=NULL, $attributes=NULL) | |
Creates a submit button at $index position. More... | |
_visibleOver (BaseHtml $element) | |
addFieldButton ($caption, $visibleHover=true, $callback=null) | |
Inserts a new Button for each row. More... | |
addFieldButtons ($buttons, $visibleHover=true, $callback=null) | |
Inserts a new ButtonGroups for each row. More... | |
insertFieldButton ($index, $caption, $visibleHover=true, $callback=null) | |
Inserts a new Button for each row at col $index. More... | |
insertInFieldButton ($index, $caption, $visibleHover=true, $callback=null, $key=null) | |
Inserts a new Button for each row in col at $index. More... | |
addDefaultButton ($icon, $class=null, $visibleHover=true, $callback=null, $key=null) | |
insertDefaultButtonIn ($index, $icon, $class=null, $visibleHover=true, $callback=null, $key=null) | |
getDefaultButton ($icon, $class=null, $visibleHover=true) | |
addDeleteButton ($visibleHover=true, $deleteBehavior=[], $callback=null) | |
Adds a delete button. More... | |
addEditButton ($visibleHover=true, $editBehavior=[], $callback=null) | |
Adds an edit button. More... | |
addDisplayButton ($visibleHover=true, $displayBehavior=[], $callback=null) | |
Adds a button for displaying an object. More... | |
addEditDeleteButtons ($visibleHover=true, $behavior=[], $callbackEdit=null, $callbackDelete=null) | |
Adds an edit and a delete button. More... | |
addAllButtons ($visibleHover=true, $behavior=[], $callbackDisplay=null, $callbackEdit=null, $callbackDelete=null) | |
Adds an edit and a delete button. More... | |
insertDeleteButtonIn ($index, $visibleHover=true, $deleteBehavior=[], $callback=null) | |
insertEditButtonIn ($index, $visibleHover=true, $editBehavior=[], $callback=null) | |
insertDisplayButtonIn ($index, $visibleHover=true, $displayBehavior=[], $callback=null) | |
getButtonsColumn () | |
setButtons ($_buttons) | |
getButtons () | |
addInToolbar ($element, $callback=NULL) | |
_runCheckboxes (JsUtils $js) | |
_getCheckedChange (JsUtils $js=NULL) | |
_getCheckedMessageFunction () | |
_getCheckedMessageCall (JsUtils $js=NULL) | |
_generateMainCheckbox (&$captions) | |
_setAllChecked ($checked) | |
getHasCheckboxes () | |
setHasCheckboxes ($_hasCheckboxes) | |
getCheckedMessage () | |
setCheckedMessage (array $_checkedMessage) | |
Defines the message displayed when checkboxes are checked or unchecked with an associative array 0=>no selection,1=>one item selected, other=>{count} items selected. More... | |
addCountCheckedInToolbar (array $checkedMessage=null, $callback=null) | |
setCheckedClass ($_checkedClass) | |
setCheckedCallback ($checkedCallback) | |
Set the callback function that determines whether the checkbox should be checked for an object. More... | |
Variables | |
trait | DataTableFieldAsTrait |
$_buttonsColumn | |
trait | HasCheckboxesTrait |
$_hasCheckedMessage =false | |
$_checkedMessage | |
$_checkedClass | |
$_checkedCallback | |
|
abstractprotected |
Definition at line 94 of file FieldAsTrait.php.
|
protected |
Definition at line 61 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 31 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 48 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 38 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 24 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 72 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 102 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addAllButtons | ( | $visibleHover = true , |
|
$behavior = [] , |
|||
$callbackDisplay = null , |
|||
$callbackEdit = null , |
|||
$callbackDelete = null |
|||
) |
Adds an edit and a delete button.
boolean | $visibleHover | |
array | $behavior | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"data-ajax","params"=>"{}","method"=>"get") |
callable | $callbackDisplay | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
callable | $callbackEdit | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
callable | $callbackDelete | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
Definition at line 233 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addCountCheckedInToolbar | ( | array | $checkedMessage = null , |
$callback = null |
|||
) |
array | $checkedMessage | |
callable | $callback |
Definition at line 112 of file HasCheckboxesTrait.php.
Ajax\semantic\widgets\datatable\addDefaultButton | ( | $icon, | |
$class = null , |
|||
$visibleHover = true , |
|||
$callback = null , |
|||
$key = null |
|||
) |
Definition at line 155 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addDeleteButton | ( | $visibleHover = true , |
|
$deleteBehavior = [] , |
|||
$callback = null |
|||
) |
Adds a delete button.
boolean | $visibleHover | |
array | $deleteBehavior | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"data-ajax","params"=>"{}","method"=>"get") |
callable | $callback | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
Definition at line 180 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addDisplayButton | ( | $visibleHover = true , |
|
$displayBehavior = [] , |
|||
$callback = null |
|||
) |
Adds a button for displaying an object.
boolean | $visibleHover | |
array | $displayBehavior | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"data-ajax","params"=>"{}","method"=>"get") |
callable | $callback | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
Definition at line 204 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addEditButton | ( | $visibleHover = true , |
|
$editBehavior = [] , |
|||
$callback = null |
|||
) |
Adds an edit button.
boolean | $visibleHover | |
array | $editBehavior | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"data-ajax","params"=>"{}","method"=>"get") |
callable | $callback | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
Definition at line 192 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addEditDeleteButtons | ( | $visibleHover = true , |
|
$behavior = [] , |
|||
$callbackEdit = null , |
|||
$callbackDelete = null |
|||
) |
Adds an edit and a delete button.
boolean | $visibleHover | |
array | $behavior | default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"data-ajax","params"=>"{}","method"=>"get") |
callable | $callbackEdit | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
callable | $callbackDelete | this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object |
Definition at line 217 of file DataTableFieldAsTrait.php.
|
abstract |
Ajax\semantic\widgets\datatable\addFieldButton | ( | $caption, | |
$visibleHover = true , |
|||
$callback = null |
|||
) |
Inserts a new Button for each row.
string | $caption | |
callable | $callback | |
boolean | $visibleHover |
Definition at line 114 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\addFieldButtons | ( | $buttons, | |
$visibleHover = true , |
|||
$callback = null |
|||
) |
Inserts a new ButtonGroups for each row.
array | $buttons | |
callable | $callback | |
boolean | $visibleHover |
Definition at line 126 of file DataTableFieldAsTrait.php.
|
abstract |
|
abstractprotected |
|
abstract |
Definition at line 349 of file FieldAsTrait.php.
Ajax\semantic\widgets\datatable\fieldAsSubmit | ( | $index, | |
$cssStyle = NULL , |
|||
$url = NULL , |
|||
$responseElement = NULL , |
|||
$attributes = NULL |
|||
) |
Creates a submit button at $index position.
int | $index | |
string | $cssStyle | |
string | $url | |
string | $responseElement | |
array | $attributes | associative array (ajax key is for ajax post) |
Definition at line 92 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\getButtons | ( | ) |
Definition at line 275 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\getButtonsColumn | ( | ) |
Definition at line 260 of file DataTableFieldAsTrait.php.
|
private |
callable | $thisCallback | |
array | $parameters | |
callable | $callback |
Definition at line 43 of file DataTableFieldAsTrait.php.
|
protected |
Definition at line 89 of file HasCheckboxesTrait.php.
|
private |
Definition at line 165 of file DataTableFieldAsTrait.php.
|
private |
string | $caption |
Definition at line 68 of file DataTableFieldAsTrait.php.
|
private |
string | $caption | |
callable | $callback | |
boolean | $visibleHover |
Definition at line 33 of file DataTableFieldAsTrait.php.
|
private |
Definition at line 76 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\getHasCheckboxes | ( | ) |
Definition at line 80 of file HasCheckboxesTrait.php.
Ajax\semantic\widgets\datatable\insertDefaultButtonIn | ( | $index, | |
$icon, | |||
$class = null , |
|||
$visibleHover = true , |
|||
$callback = null , |
|||
$key = null |
|||
) |
Definition at line 160 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\insertDeleteButtonIn | ( | $index, | |
$visibleHover = true , |
|||
$deleteBehavior = [] , |
|||
$callback = null |
|||
) |
Definition at line 242 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\insertDisplayButtonIn | ( | $index, | |
$visibleHover = true , |
|||
$displayBehavior = [] , |
|||
$callback = null |
|||
) |
Definition at line 252 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\insertEditButtonIn | ( | $index, | |
$visibleHover = true , |
|||
$editBehavior = [] , |
|||
$callback = null |
|||
) |
Definition at line 247 of file DataTableFieldAsTrait.php.
|
abstract |
Ajax\semantic\widgets\datatable\insertFieldButton | ( | $index, | |
$caption, | |||
$visibleHover = true , |
|||
$callback = null |
|||
) |
Inserts a new Button for each row at col $index.
int | $index | |
string | $caption | |
callable | $callback |
Definition at line 138 of file DataTableFieldAsTrait.php.
|
abstract |
Ajax\semantic\widgets\datatable\insertInFieldButton | ( | $index, | |
$caption, | |||
$visibleHover = true , |
|||
$callback = null , |
|||
$key = null |
|||
) |
Inserts a new Button for each row in col at $index.
int | $index | |
string | $caption | |
callable | $callback |
Definition at line 150 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\setButtons | ( | $_buttons | ) |
array | $_buttons |
Definition at line 267 of file DataTableFieldAsTrait.php.
Ajax\semantic\widgets\datatable\setCheckedCallback | ( | $checkedCallback | ) |
Set the callback function that determines whether the checkbox should be checked for an object.
callable | $checkedCallback | a callback like function($object) that returns true or false |
Definition at line 130 of file HasCheckboxesTrait.php.
Ajax\semantic\widgets\datatable\setCheckedClass | ( | $_checkedClass | ) |
Definition at line 122 of file HasCheckboxesTrait.php.
Ajax\semantic\widgets\datatable\setCheckedMessage | ( | array | $_checkedMessage | ) |
Defines the message displayed when checkboxes are checked or unchecked with an associative array 0=>no selection,1=>one item selected, other=>{count} items selected.
array | $_checkedMessage |
Definition at line 103 of file HasCheckboxesTrait.php.
Ajax\semantic\widgets\datatable\setHasCheckboxes | ( | $_hasCheckboxes | ) |
Definition at line 84 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 19 of file DataTableFieldAsTrait.php.
|
protected |
Definition at line 20 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 19 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 18 of file HasCheckboxesTrait.php.
|
protected |
Definition at line 17 of file HasCheckboxesTrait.php.
trait DataTableFieldAsTrait |
Definition at line 17 of file DataTableFieldAsTrait.php.
trait HasCheckboxesTrait |
Definition at line 15 of file HasCheckboxesTrait.php.