@@ -10,8 +10,8 @@ discard block |
||
| 10 | 10 | * @version 1.001 |
| 11 | 11 | */ |
| 12 | 12 | abstract class BaseComponent { |
| 13 | - public $jquery_code_for_compile=array (); |
|
| 14 | - protected $params=array (); |
|
| 13 | + public $jquery_code_for_compile=array(); |
|
| 14 | + protected $params=array(); |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * |
@@ -68,9 +68,9 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | public function setParams($params) { |
| 71 | - if(\is_array($params)) { |
|
| 71 | + if (\is_array($params)) { |
|
| 72 | 72 | foreach ($params as $k => $v) { |
| 73 | - $method = "set" . ucfirst($k); |
|
| 73 | + $method="set".ucfirst($k); |
|
| 74 | 74 | if (method_exists($this, $method)) |
| 75 | 75 | $this->$method($v); |
| 76 | 76 | else { |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | return $this; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - public function addParams($params){ |
|
| 87 | - foreach ($params as $k=>$v){ |
|
| 86 | + public function addParams($params) { |
|
| 87 | + foreach ($params as $k=>$v) { |
|
| 88 | 88 | $this->setParam($k, $v); |
| 89 | 89 | } |
| 90 | 90 | return $this; |
@@ -92,11 +92,11 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | abstract public function getScript(); |
| 94 | 94 | |
| 95 | - public function setDebug($value){ |
|
| 95 | + public function setDebug($value) { |
|
| 96 | 96 | return $this->setParam("debug", $value); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - public function setVerbose($value){ |
|
| 99 | + public function setVerbose($value) { |
|
| 100 | 100 | return $this->setParam("verbose", $value); |
| 101 | 101 | } |
| 102 | 102 | |