@@ -23,7 +23,6 @@ discard block |
||
23 | 23 | * Return the javascript call to a Jaxon function or object method |
24 | 24 | * |
25 | 25 | * @param string $sName The function or method (with class) name |
26 | - * @param ... $xParams The parameters of the function or method |
|
27 | 26 | * |
28 | 27 | * @return \Jaxon\Request\Request |
29 | 28 | */ |
@@ -46,7 +45,6 @@ discard block |
||
46 | 45 | * Return the javascript call to a generic function |
47 | 46 | * |
48 | 47 | * @param string $sName The function or method (with class) name |
49 | - * @param ... $xParams The parameters of the function or method |
|
50 | 48 | * |
51 | 49 | * @return \Jaxon\Request\Request |
52 | 50 | */ |
@@ -70,7 +68,6 @@ discard block |
||
70 | 68 | * @param integer $nItemsPerPage The number of items per page page |
71 | 69 | * @param integer $nCurrentPage The current page |
72 | 70 | * @param string $sMethod The name of function or a method prepended with its class name |
73 | - * @param ... $xParams The parameters of the function or method |
|
74 | 71 | * |
75 | 72 | * @return string the pagination links |
76 | 73 | */ |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | |
52 | 52 | $this->sRequestedEvent = NULL; |
53 | 53 | |
54 | - if(isset($_GET['jxnevt'])) |
|
54 | + if (isset($_GET['jxnevt'])) |
|
55 | 55 | { |
56 | 56 | $this->sRequestedEvent = $_GET['jxnevt']; |
57 | 57 | } |
58 | - if(isset($_POST['jxnevt'])) |
|
58 | + if (isset($_POST['jxnevt'])) |
|
59 | 59 | { |
60 | 60 | $this->sRequestedEvent = $_POST['jxnevt']; |
61 | 61 | } |
@@ -80,19 +80,19 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function register($aArgs) |
82 | 82 | { |
83 | - if(count($aArgs) > 1) |
|
83 | + if (count($aArgs) > 1) |
|
84 | 84 | { |
85 | 85 | $sType = $aArgs[0]; |
86 | 86 | |
87 | - if($sType == Jaxon::BROWSER_EVENT) |
|
87 | + if ($sType == Jaxon::BROWSER_EVENT) |
|
88 | 88 | { |
89 | 89 | $sEvent = $aArgs[1]; |
90 | - if(!isset($this->aEvents[$sEvent])) |
|
90 | + if (!isset($this->aEvents[$sEvent])) |
|
91 | 91 | { |
92 | 92 | $xBrowserEvent = new \Jaxon\Support\BrowserEvent($sEvent); |
93 | - if(count($aArgs) > 2 && is_array($aArgs[2])) |
|
93 | + if (count($aArgs) > 2 && is_array($aArgs[2])) |
|
94 | 94 | { |
95 | - foreach($aArgs[2] as $sKey => $sValue) |
|
95 | + foreach ($aArgs[2] as $sKey => $sValue) |
|
96 | 96 | { |
97 | 97 | $xBrowserEvent->configure($sKey, $sValue); |
98 | 98 | } |
@@ -101,13 +101,13 @@ discard block |
||
101 | 101 | return $xBrowserEvent->generateRequest(); |
102 | 102 | } |
103 | 103 | } |
104 | - else if($sType == Jaxon::EVENT_HANDLER) |
|
104 | + else if ($sType == Jaxon::EVENT_HANDLER) |
|
105 | 105 | { |
106 | 106 | $sEvent = $aArgs[1]; |
107 | - if(isset($this->aEvents[$sEvent]) && isset($aArgs[2])) |
|
107 | + if (isset($this->aEvents[$sEvent]) && isset($aArgs[2])) |
|
108 | 108 | { |
109 | 109 | $xUserFunction = $aArgs[2]; |
110 | - if(!($xUserFunction instanceof \Jaxon\Request\Support\UserFunction)) |
|
110 | + if (!($xUserFunction instanceof \Jaxon\Request\Support\UserFunction)) |
|
111 | 111 | { |
112 | 112 | $xUserFunction = new \Jaxon\Request\Support\UserFunction($xUserFunction); |
113 | 113 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | public function generateHash() |
130 | 130 | { |
131 | 131 | $sHash = ''; |
132 | - foreach($this->aEvents as $xEvent) |
|
132 | + foreach ($this->aEvents as $xEvent) |
|
133 | 133 | { |
134 | 134 | $sHash .= $xEvent->getName(); |
135 | 135 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | public function getScript() |
145 | 145 | { |
146 | 146 | $sCode = ''; |
147 | - foreach($this->aEvents as $xEvent) |
|
147 | + foreach ($this->aEvents as $xEvent) |
|
148 | 148 | { |
149 | 149 | $sCode .= $xEvent->getScript(); |
150 | 150 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | public function canProcessRequest() |
160 | 160 | { |
161 | 161 | // Check the validity of the event name |
162 | - if(($this->sRequestedEvent) && !$this->validateEvent($this->sRequestedEvent)) |
|
162 | + if (($this->sRequestedEvent) && !$this->validateEvent($this->sRequestedEvent)) |
|
163 | 163 | { |
164 | 164 | $this->sRequestedEvent = null; |
165 | 165 | } |
@@ -173,12 +173,12 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function processRequest() |
175 | 175 | { |
176 | - if(!$this->canProcessRequest()) |
|
176 | + if (!$this->canProcessRequest()) |
|
177 | 177 | return false; |
178 | 178 | |
179 | 179 | $aArgs = $this->getRequestManager()->process(); |
180 | 180 | |
181 | - if(array_key_exists($this->sRequestedEvent, $this->aEvents)) |
|
181 | + if (array_key_exists($this->sRequestedEvent, $this->aEvents)) |
|
182 | 182 | { |
183 | 183 | $this->aEvents[$this->sRequestedEvent]->fire($aArgs); |
184 | 184 | return true; |