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
4
6
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}
Base class for js code.
Definition JsCode.php:10
Base component for JQuery UI visuals components.