phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
BaseHtml for HTML components. More...
Public Member Functions | |
run (JsUtils $js) | |
getTagName () | |
setTagName ($tagName) | |
fromArray ($array) | |
fromDatabaseObjects ($objects, $function) | |
fromDatabaseObject ($object, $function) | |
wrap ($before, $after="") | |
getElementById ($identifier, $elements) | |
getBsComponent () | |
setBsComponent ($bsComponent) | |
compile (JsUtils $js=NULL, &$view=NULL) | |
setDraggable ($attr="id", $dropZone=null, $parameters=[]) | |
Sets the element draggable, and eventualy defines the dropzone (HTML5 drag and drop) | |
asDropZone ($jsCallback="", $jqueryDone="append", $parameters=[]) | |
Declares the element as a drop zone (HTML5 drag and drop) | |
asFileDropZone ($responseElement=null, $url=null, $progress=null, $jsCallback="", $parameters=[]) | |
Declares the element as a drop zone for file uploading (HTML5 drag and drop) | |
__toString () | |
onPostCompile ($callback) | |
onPreCompile ($callback) | |
Public Member Functions inherited from BaseWidget | |
__construct ($identifier) | |
getIdentifier () | |
setIdentifier ($identifier) | |
getLibraryId () | |
setLibraryId ($_libraryId) | |
Public Member Functions inherited from BaseHtmlEventsTrait | |
addEvent ($event, $jsCode, $stopPropagation=false, $preventDefault=false) | |
trigger ($event, $params="[]") | |
jsTrigger ($event, $params="[this]") | |
_addEvent ($event, $jsCode) | |
on ($event, $jsCode, $stopPropagation=false, $preventDefault=false) | |
onClick ($jsCode, $stopPropagation=false, $preventDefault=true) | |
setClick ($jsCode) | |
onCreate ($jsCode) | |
addEventsOnRun (JsUtils $js=NULL) | |
_ajaxOn ($operation, $event, $url, $responseElement="", $parameters=array()) | |
getOn ($event, $url, $responseElement="", $parameters=array()) | |
Performs a get to $url on the event $event on $element and display it in $responseElement. | |
getOnClick ($url, $responseElement="", $parameters=array()) | |
Performs a get to $url on the click event on $element and display it in $responseElement. | |
postOn ($event, $url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the event $event on $element and display it in $responseElement. | |
postOnClick ($url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the click event on $element and display it in $responseElement. | |
postFormOn ($event, $url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax. | |
postFormOnClick ($url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax on click. | |
jsDoJquery ($jqueryCall, $param="") | |
executeOnRun ($jsCode) | |
jsHtml ($content="") | |
jsShow () | |
jsHide () | |
jsToggle ($value) | |
getEvents () | |
Public Member Functions inherited from BaseHtmlPropertiesTrait | |
getProperties () | |
setProperties ($properties) | |
setProperty ($name, $value) | |
getProperty ($name) | |
addToProperty ($name, $value, $separator=" ") | |
addProperties ($properties) | |
removePropertyValue ($name, $value) | |
addToPropertyCtrl ($name, $value, $typeCtrl) | |
addToPropertyCtrlCheck ($name, $value, $typeCtrl) | |
removeProperty ($name) | |
propertyContains ($propertyName, $value) | |
Protected Member Functions | |
getTemplate (JsUtils $js=NULL, $view=null) | |
ctrl ($name, $value, $typeCtrl) | |
setMemberCtrl (&$name, $value, $typeCtrl) | |
addToMemberUnique (&$name, $value, $typeCtrl, $separator=" ") | |
addToMemberCtrl (&$name, $value, $typeCtrl, $separator=" ") | |
addToMember (&$name, $value, $separator=' ') | |
removeOldValues (&$oldValue, $allValues) | |
_getElementBy ($callback, $elements) | |
setWrapBefore ($wrapBefore) | |
setWrapAfter ($wrapAfter) | |
compile_once (JsUtils $js=NULL, &$view=NULL) | |
Protected Member Functions inherited from BaseWidget | |
cleanIdentifier ($id) | |
Protected Member Functions inherited from BaseHtmlEventsTrait | |
_eventsOnCreate (JsUtils $js=NULL) | |
Protected Member Functions inherited from BaseHtmlPropertiesTrait | |
removePropertyValues ($name, $values) | |
addToPropertyUnique ($name, $value, $typeCtrl) | |
setPropertyCtrl ($name, $value, $typeCtrl) | |
getElementByPropertyValue ($propertyName, $value, $elements) | |
Protected Attributes | |
$_template | |
$tagName | |
$_wrapBefore = array() | |
$_wrapAfter = array() | |
$_bsComponent | |
$_compiled = false | |
$_runned = false | |
$_postCompile | |
$_preCompile | |
Protected Attributes inherited from BaseWidget | |
$identifier | |
$_identifier | |
$_libraryId | |
$_self | |
Protected Attributes inherited from BaseHtmlEventsTrait | |
$_events =array () | |
Protected Attributes inherited from BaseHtmlPropertiesTrait | |
$properties =array () | |
Private Member Functions | |
_callSetter ($setter, $key, $value, &$array) | |
addCallback ($originalValue, $callback) | |
callCallback ($callable) | |
__toString | ( | ) |
Reimplemented in HtmlCarouselItem, HtmlDropdownItem, HtmlListgroupItem, HtmlNavzone, HtmlCollapse, and HtmlDropdown.
Definition at line 313 of file BaseHtml.php.
|
private |
Definition at line 44 of file BaseHtml.php.
|
protected |
Reimplemented from BaseHtmlPropertiesTrait.
Definition at line 108 of file BaseHtml.php.
|
private |
Definition at line 325 of file BaseHtml.php.
|
protected |
Definition at line 98 of file BaseHtml.php.
|
protected |
Definition at line 89 of file BaseHtml.php.
|
protected |
Definition at line 81 of file BaseHtml.php.
asDropZone | ( | $jsCallback = "" , |
|
$jqueryDone = "append" , |
|||
$parameters = [] |
|||
) |
Declares the element as a drop zone (HTML5 drag and drop)
string | $jsCallback | |
string | $jqueryDone | |
array | $parameters |
Definition at line 269 of file BaseHtml.php.
asFileDropZone | ( | $responseElement = null , |
|
$url = null , |
|||
$progress = null , |
|||
$jsCallback = "" , |
|||
$parameters = [] |
|||
) |
Declares the element as a drop zone for file uploading (HTML5 drag and drop)
?string | $responseElement | |
?string | $url | |
?string | $progress | |
string | $jsCallback | |
array | $parameters |
Definition at line 287 of file BaseHtml.php.
|
private |
Definition at line 338 of file BaseHtml.php.
compile | ( | JsUtils | $js = NULL , |
& | $view = NULL |
||
) |
Reimplemented in HtmlGridCol, HtmlGridRow, HtmlListgroupItem, HtmlAlert, HtmlBreadcrumbs, HtmlCarousel, HtmlForm, HtmlGridSystem, HtmlProgressbar, HtmlTabs, HtmlInput, HtmlSelect, HtmlCollection, HtmlSemDoubleElement, HtmlForm, HtmlFormFields, HtmlBreadcrumb, HtmlPaginationMenu, HtmlTable, HtmlAbsractItem, HtmlAccordionItem, HtmlGridRow, HtmlTD, HtmlViewContent, HtmlViewItem, HtmlList, HtmlStep, HtmlDropdown, HtmlModal, HtmlProgress, HtmlShape, HtmlTab, HtmlToast, BusinessForm, DataElement, DataForm, and DataTable.
Definition at line 207 of file BaseHtml.php.
|
protected |
Reimplemented in HtmlTable.
Definition at line 193 of file BaseHtml.php.
|
protected |
Reimplemented from BaseHtmlPropertiesTrait.
Definition at line 62 of file BaseHtml.php.
fromArray | ( | $array | ) |
Reimplemented in HtmlDropdownItem, HtmlNavzone, HtmlTabItem, HtmlBreadcrumbs, HtmlButton, HtmlButtongroups, HtmlCarousel, HtmlDropdown, HtmlForm, HtmlNavbar, HtmlTabs, HtmlSelect, HtmlCollection, HtmlSingleElement, HtmlButton, and HtmlButtonGroups.
Definition at line 146 of file BaseHtml.php.
fromDatabaseObject | ( | $object, | |
$function | |||
) |
Reimplemented in HtmlBreadcrumbs, HtmlButtongroups, HtmlCarousel, HtmlDropdown, HtmlListgroup, HtmlNavbar, HtmlProgressbar, HtmlTabs, HtmlSelect, HtmlCollection, HtmlMenu, HtmlTable, HtmlViewGroups, HtmlButtonGroups, and HtmlDropdown.
Definition at line 168 of file BaseHtml.php.
fromDatabaseObjects | ( | $objects, | |
$function | |||
) |
Definition at line 159 of file BaseHtml.php.
getBsComponent | ( | ) |
Definition at line 184 of file BaseHtml.php.
getElementById | ( | $identifier, | |
$elements | |||
) |
Definition at line 178 of file BaseHtml.php.
getTagName | ( | ) |
Definition at line 137 of file BaseHtml.php.
|
protected |
Definition at line 58 of file BaseHtml.php.
onPostCompile | ( | $callback | ) |
Definition at line 317 of file BaseHtml.php.
onPreCompile | ( | $callback | ) |
Definition at line 321 of file BaseHtml.php.
|
protected |
Reimplemented from BaseHtmlPropertiesTrait.
Definition at line 103 of file BaseHtml.php.
|
abstract |
JsUtils | $js |
Reimplemented in HtmlElementAsContent, HtmlCarouselItem, HtmlDropdownItem, HtmlNavzone, HtmlTabItem, HtmlAccordion, HtmlAlert, HtmlButton, HtmlCarousel, HtmlCollapse, HtmlDropdown, HtmlInput, HtmlInputgroup, HtmlLink, HtmlModal, HtmlNavbar, HtmlPanel, HtmlSplitbutton, HtmlTabs, HtmlSelect, HtmlDoubleElement, HtmlSingleElement, Widget, HtmlSemCollection, HtmlSemDoubleElement, HtmlForm, HtmlFormField, HtmlFormFields, HtmlMessage, HtmlAccordionMenu, HtmlMenu, HtmlTable, HtmlViewGroups, HtmlLink, HtmlButtonGroups, HtmlIconGroups, HtmlInput, HtmlList, HtmlSegmentGroups, AbstractCheckbox, HtmlAccordion, HtmlDimmer, HtmlDropdown, HtmlModal, HtmlPopup, HtmlProgress, HtmlRating, HtmlSearch, HtmlShape, HtmlSlider, HtmlSticky, HtmlTab, HtmlToast, DataElement, DataForm, and DataTable.
setBsComponent | ( | $bsComponent | ) |
Definition at line 188 of file BaseHtml.php.
setDraggable | ( | $attr = "id" , |
|
$dropZone = null , |
|||
$parameters = [] |
|||
) |
Sets the element draggable, and eventualy defines the dropzone (HTML5 drag and drop)
string | $attr | default: "id" |
BaseHtml | $dropZone | the dropzone element |
array | $parameters | default: ["jsCallback"=>"","jqueryDone"=>"append"] |
Definition at line 249 of file BaseHtml.php.
|
protected |
Definition at line 75 of file BaseHtml.php.
setTagName | ( | $tagName | ) |
Reimplemented in HtmlDropdown.
Definition at line 141 of file BaseHtml.php.
|
protected |
Definition at line 132 of file BaseHtml.php.
|
protected |
Definition at line 127 of file BaseHtml.php.
wrap | ( | $before, | |
$after = "" |
|||
) |
Definition at line 170 of file BaseHtml.php.
|
protected |
Definition at line 27 of file BaseHtml.php.
|
protected |
Definition at line 29 of file BaseHtml.php.
|
protected |
Definition at line 33 of file BaseHtml.php.
|
protected |
Definition at line 35 of file BaseHtml.php.
|
protected |
Definition at line 31 of file BaseHtml.php.
|
protected |
Definition at line 19 of file BaseHtml.php.
|
protected |
Definition at line 25 of file BaseHtml.php.
|
protected |
Definition at line 23 of file BaseHtml.php.
|
protected |
Definition at line 21 of file BaseHtml.php.