phpMv  -UI toolkit 2.2.5
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
SimpleComponent Class Reference

Base component for JQuery UI visuals components. More...

+ Inheritance diagram for SimpleComponent:

Public Member Functions

 __construct (JsUtils $js=NULL)
 
 getScript ()
 
 attach ($identifier)
 
 addEvent ($event, $jsCode)
 
 on ($event, $jsCode)
 
 getAttachTo ()
 
 getItemSelector ()
 
 setItemSelector ($itemSelector)
 
- Public Member Functions inherited from BaseComponent
 __construct (JsUtils $js=NULL)
 
 setParam ($key, $value)
 
 getParam ($key)
 
 getParams ()
 
 compile (JsUtils $js=NULL)
 
 setParams ($params)
 
 addParams ($params)
 
 getScript ()
 
 setDebug ($value)
 
 setVerbose ($value)
 

Protected Member Functions

 compileEvents ()
 
 _createSelector ($itemSelector, $selector)
 
 compileJQueryCode ()
 
 setParamCtrl ($key, $value, $typeCtrl)
 
- Protected Member Functions inherited from BaseComponent
 getParamsAsJSON ($params)
 
 setParamCtrl ($key, $value, $typeCtrl)
 

Protected Attributes

 $attachTo
 
 $itemSelector
 
 $uiName
 
 $events
 
- Protected Attributes inherited from BaseComponent
 $params =array ()
 
 $js
 

Additional Inherited Members

- Data Fields inherited from BaseComponent
 $jquery_code_for_compile =array ()
 

Detailed Description

Base component for JQuery UI visuals components.

Author
jc
Version
1.001

Definition at line 13 of file SimpleComponent.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( JsUtils  $js = NULL)

Definition at line 19 of file SimpleComponent.php.

Member Function Documentation

◆ _createSelector()

_createSelector (   $itemSelector,
  $selector 
)
protected

Definition at line 38 of file SimpleComponent.php.

◆ addEvent()

addEvent (   $event,
  $jsCode 
)

Definition at line 74 of file SimpleComponent.php.

◆ attach()

attach (   $identifier)
Parameters
String$identifieridentifiant CSS

Definition at line 70 of file SimpleComponent.php.

◆ compileEvents()

compileEvents ( )
protected

Definition at line 24 of file SimpleComponent.php.

◆ compileJQueryCode()

compileJQueryCode ( )
protected

Definition at line 46 of file SimpleComponent.php.

◆ getAttachTo()

getAttachTo ( )

Definition at line 95 of file SimpleComponent.php.

◆ getItemSelector()

getItemSelector ( )

Definition at line 99 of file SimpleComponent.php.

◆ getScript()

getScript ( )

Definition at line 58 of file SimpleComponent.php.

◆ on()

on (   $event,
  $jsCode 
)

Definition at line 78 of file SimpleComponent.php.

◆ setItemSelector()

setItemSelector (   $itemSelector)

Definition at line 103 of file SimpleComponent.php.

◆ setParamCtrl()

setParamCtrl (   $key,
  $value,
  $typeCtrl 
)
protected

Definition at line 83 of file SimpleComponent.php.

Field Documentation

◆ $attachTo

$attachTo
protected

Definition at line 14 of file SimpleComponent.php.

◆ $events

$events
protected

Definition at line 17 of file SimpleComponent.php.

◆ $itemSelector

$itemSelector
protected

Definition at line 15 of file SimpleComponent.php.

◆ $uiName

$uiName
protected

Definition at line 16 of file SimpleComponent.php.


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