phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
SimpleExtComponent.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\common\components
;
4
5
use
Ajax\common\JsCode
;
6
7
class
SimpleExtComponent
extends
SimpleComponent
{
8
protected
$events
=array ();
9
protected
$jsCodes
=array ();
10
11
public
function
addEvent
($event, $jsCode) {
12
$this->events [$event]=$jsCode;
13
return
$this;
14
}
15
16
public
function
getScript
() {
17
parent::getScript();
18
$this->
compileJsCodes
();
19
return
$this->
compileJQueryCode
();
20
}
21
22
protected
function
compileJsCodes
(){
23
foreach
( $this->jsCodes as $jsCode ) {
24
$this->jquery_code_for_compile []=$jsCode->compile(array (
25
"identifier"
=> $this->attachTo
26
));
27
}
28
}
29
30
public
function
addCode
($jsCode) {
31
$this->jsCodes []=
new
JsCode
($jsCode);
32
}
33
34
}
Ajax\common\JsCode
Base class for js code.
Definition
JsCode.php:10
Ajax\common\components\SimpleComponent
Base component for JQuery UI visuals components.
Definition
SimpleComponent.php:13
Ajax\common\components\SimpleComponent\compileJQueryCode
compileJQueryCode()
Definition
SimpleComponent.php:46
Ajax\common\components\SimpleExtComponent
Definition
SimpleExtComponent.php:7
Ajax\common\components\SimpleExtComponent\$jsCodes
$jsCodes
Definition
SimpleExtComponent.php:9
Ajax\common\components\SimpleExtComponent\addCode
addCode($jsCode)
Definition
SimpleExtComponent.php:30
Ajax\common\components\SimpleExtComponent\$events
$events
Definition
SimpleExtComponent.php:8
Ajax\common\components\SimpleExtComponent\compileJsCodes
compileJsCodes()
Definition
SimpleExtComponent.php:22
Ajax\common\components\SimpleExtComponent\getScript
getScript()
Definition
SimpleExtComponent.php:16
Ajax\common\components\SimpleExtComponent\addEvent
addEvent($event, $jsCode)
Definition
SimpleExtComponent.php:11
Ajax\common\components
Definition
BaseComponent.php:3
Ajax
common
components
SimpleExtComponent.php
Generated on Sun Dec 10 2023 16:15:56 for
phpMv-UI
by
doxygen
1.9.8