@@ -128,6 +128,9 @@ discard block |
||
128 | 128 | return $valid; |
129 | 129 | } |
130 | 130 | |
131 | + /** |
|
132 | + * @param string $id |
|
133 | + */ |
|
131 | 134 | private static function recover($id) |
132 | 135 | { |
133 | 136 | if (!empty($_SESSION['pfbc'][$id]['form'])) |
@@ -151,6 +154,9 @@ discard block |
||
151 | 154 | unset($_SESSION['pfbc'][$id]['errors']); |
152 | 155 | } |
153 | 156 | |
157 | + /** |
|
158 | + * @param string $id |
|
159 | + */ |
|
154 | 160 | public static function setSessionValue($id, $element, $value) |
155 | 161 | { |
156 | 162 | $_SESSION['pfbc'][$id]['values'][$element] = $value; |
@@ -159,6 +165,9 @@ discard block |
||
159 | 165 | /*This method parses the form's width property into a numeric width value and a width suffix - either px or %. |
160 | 166 | These values are used by the form's concrete view class.*/ |
161 | 167 | |
168 | + /** |
|
169 | + * @param string $id |
|
170 | + */ |
|
162 | 171 | public static function setError($id, $messages, $element = '') |
163 | 172 | { |
164 | 173 | if (!is_array($messages)) |
@@ -186,6 +195,9 @@ discard block |
||
186 | 195 | $form->error->renderAjaxErrorResponse(); |
187 | 196 | } |
188 | 197 | |
198 | + /** |
|
199 | + * @param string $id |
|
200 | + */ |
|
189 | 201 | public static function setSuccess($id, $message, $element = '') |
190 | 202 | { |
191 | 203 | return (new Design)->setFlashMsg($message, Design::SUCCESS_TYPE); |
@@ -18,7 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * Emit a signal. |
20 | 20 | * |
21 | - * @param mixed $mVar [, string $... ] |
|
22 | 21 | * @return string |
23 | 22 | */ |
24 | 23 | public static function emit() |
@@ -37,6 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Checks Ads Table. |
39 | 39 | * |
40 | + * @param string $sTable |
|
40 | 41 | * @return string|void Returns the table name if it is correct, nothing otherwise. |
41 | 42 | * |
42 | 43 | * @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException If the table is not valid. |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | private $oUserModel; |
21 | 21 | |
22 | + /** |
|
23 | + * @param string|null $sTable |
|
24 | + */ |
|
22 | 25 | public function __construct($sTable) |
23 | 26 | { |
24 | 27 | parent::__construct(); |