@@ -184,6 +184,10 @@ |
||
184 | 184 | return $_html_result; |
185 | 185 | } |
186 | 186 | |
187 | +/** |
|
188 | + * @param string|null $id |
|
189 | + * @param integer $idx |
|
190 | + */ |
|
187 | 191 | function smarty_function_html_options_optgroup($key, $values, $selected, $id, $class, &$idx) |
188 | 192 | { |
189 | 193 | $optgroup_html = '<optgroup label="' . smarty_function_escape_special_chars($key) . '">' . "\n"; |
@@ -164,6 +164,10 @@ |
||
164 | 164 | return $output; |
165 | 165 | } |
166 | 166 | |
167 | +/** |
|
168 | + * @param string $name |
|
169 | + * @param string $var |
|
170 | + */ |
|
167 | 171 | function smarty_function_html_table_cycle($name, $var, $no) |
168 | 172 | { |
169 | 173 | if (!is_array($var)) { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * Check table. |
21 | 21 | * |
22 | 22 | * @param string $sTable |
23 | - * @return mixed (string or void) Returns the table if it is correct. |
|
23 | + * @return string|null (string or void) Returns the table if it is correct. |
|
24 | 24 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
25 | 25 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
26 | 26 | */ |
@@ -19,6 +19,8 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @param mixed (null or integer) $mActive 1 = active otherwise null. Default value is 1. |
21 | 21 | * @param string $sTable The table. Default value is Ads. |
22 | + * @param integer $iOffset |
|
23 | + * @param integer $iLimit |
|
22 | 24 | * @return object The advertisements data. |
23 | 25 | */ |
24 | 26 | public function get($mActive = 1, $iOffset, $iLimit, $sTable = 'Ads') |
@@ -50,6 +52,10 @@ discard block |
||
50 | 52 | return $rStmt->execute(); |
51 | 53 | } |
52 | 54 | |
55 | + /** |
|
56 | + * @param string $iId |
|
57 | + * @param integer $iStatus |
|
58 | + */ |
|
53 | 59 | public function setStatus($iId, $iStatus, $sTable = 'Ads') |
54 | 60 | { |
55 | 61 | AdsCore::checkTable($sTable); |
@@ -60,6 +66,9 @@ discard block |
||
60 | 66 | return $rStmt->execute(); |
61 | 67 | } |
62 | 68 | |
69 | + /** |
|
70 | + * @param string $iId |
|
71 | + */ |
|
63 | 72 | public function delete($iId, $sTable = 'Ads') |
64 | 73 | { |
65 | 74 | AdsCore::checkTable($sTable); |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | CREATED = 'createdDate', |
22 | 22 | UPDATED = 'updatedDate'; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $sTable |
|
26 | + */ |
|
24 | 27 | public function gets($sTable, $iApproved = 1, $sOrder = self::UPDATED, $iOffset = 0, $iLimit = 500) |
25 | 28 | { |
26 | 29 | $sTable = CommentCore::checkTable($sTable); |
@@ -38,6 +41,9 @@ discard block |
||
38 | 41 | return $oData; |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param integer $iApproved |
|
46 | + */ |
|
41 | 47 | public function read($iRecipientId, $iApproved, $iOffset, $iLimit, $sTable) |
42 | 48 | { |
43 | 49 | $sTable = CommentCore::checkTable($sTable); |
@@ -18,6 +18,12 @@ |
||
18 | 18 | CREATED = 'createdDate', |
19 | 19 | UPDATED = 'updatedDate'; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $iProfileId |
|
23 | + * @param string $iAlbumId |
|
24 | + * @param integer $iOffset |
|
25 | + * @param integer $iLimit |
|
26 | + */ |
|
21 | 27 | public function album($iProfileId = null, $iAlbumId = null, $iApproved = 1, $iOffset, $iLimit, $sOrder = self::CREATED) |
22 | 28 | { |
23 | 29 | $this->cache->start(self::CACHE_GROUP, 'album' . $iProfileId . $iAlbumId . $iApproved . $iOffset . $iLimit . $sOrder, static::CACHE_TIME); |
@@ -142,6 +142,9 @@ |
||
142 | 142 | return $this->totalComments('Game', $iDay); |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param string $sTable |
|
147 | + */ |
|
145 | 148 | protected function totalComments($sTable, $iDay = 0) |
146 | 149 | { |
147 | 150 | CommentCore::checkTable($sTable); |
@@ -18,6 +18,12 @@ |
||
18 | 18 | CREATED = 'createdDate', |
19 | 19 | UPDATED = 'updatedDate'; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $iProfileId |
|
23 | + * @param string $iAlbumId |
|
24 | + * @param integer $iOffset |
|
25 | + * @param integer $iLimit |
|
26 | + */ |
|
21 | 27 | public function album($iProfileId = null, $iAlbumId = null, $iApproved = 1, $iOffset, $iLimit, $sOrder = self::CREATED) |
22 | 28 | { |
23 | 29 | $this->cache->start(self::CACHE_GROUP, 'album' . $iProfileId . $iAlbumId . $iApproved . $iOffset . $iLimit .$sOrder, static::CACHE_TIME); |
@@ -347,6 +347,9 @@ |
||
347 | 347 | Header::redirect(Uri::get(PH7_ADMIN_MOD, 'user', 'browse'), $this->sMsg); |
348 | 348 | } |
349 | 349 | |
350 | + /** |
|
351 | + * @param integer $iStatus |
|
352 | + */ |
|
350 | 353 | private function _moderateRegistration($iId, $iStatus) |
351 | 354 | { |
352 | 355 | if (isset($iId, $iStatus)) |