@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | return $this; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - protected function generateParamParts(){ |
|
| 20 | + protected function generateParamParts() { |
|
| 21 | 21 | $results=[]; |
| 22 | - foreach ($this->paramParts as $paramPart){ |
|
| 22 | + foreach ($this->paramParts as $paramPart) { |
|
| 23 | 23 | $results[]="{$this->uiName}(".\implode(",", $paramPart).")"; |
| 24 | 24 | } |
| 25 | 25 | return \implode(".", $results); |
@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function getScript() { |
| 29 | 29 | $allParams=$this->params; |
| 30 | - $this->jquery_code_for_compile=array (); |
|
| 30 | + $this->jquery_code_for_compile=array(); |
|
| 31 | 31 | $this->compileJsCodes(); |
| 32 | 32 | $paramParts=""; |
| 33 | - if(\sizeof($this->paramParts)>0){ |
|
| 33 | + if (\sizeof($this->paramParts)>0) { |
|
| 34 | 34 | $paramParts=".".$this->generateParamParts(); |
| 35 | 35 | } |
| 36 | 36 | $this->jquery_code_for_compile []="$( \"".$this->attachTo."\" ).{$this->uiName}(".$this->getParamsAsJSON($allParams).")".$paramParts.";"; |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | return $this; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - public function addComponentEvent($event,$jsCode){ |
|
| 47 | - $jsCode=\str_ireplace("\"","%quote%", $jsCode); |
|
| 46 | + public function addComponentEvent($event, $jsCode) { |
|
| 47 | + $jsCode=\str_ireplace("\"", "%quote%", $jsCode); |
|
| 48 | 48 | return $this->setParam($event, "%function(module){".$jsCode."}%"); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function setJs(JsUtils $js){ |
|
| 51 | + public function setJs(JsUtils $js) { |
|
| 52 | 52 | $this->js=$js; |
| 53 | 53 | $js->semantic()->addComponent($this, $this->attachTo, $this->params); |
| 54 | 54 | } |