Completed
Push — master ( 409900...f20dfb )
by Jean-Christophe
03:24
created

GenericComponent::getScript()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 2
eloc 7
nc 2
nop 0
1
<?php
2
3
namespace Ajax\common\components;
4
5
use Ajax\common\components\SimpleExtComponent;
6
7
class GenericComponent extends SimpleExtComponent {
8
9
	/*
10
	 * (non-PHPdoc)
11
	 * @see \Ajax\common\components\SimpleExtComponent::getScript()
12
	 */
13
	public function getScript() {
14
		$this->jquery_code_for_compile=array ();
15
		foreach ( $this->jsCodes as $jsCode ) {
16
			$this->jquery_code_for_compile []=$jsCode->compile(array (
17
					"identifier" => $this->attachTo
18
			));
19
		}
20
		$this->compileEvents();
21
		return $this->compileJQueryCode();
22
	}
23
}