@@ -36,6 +36,9 @@ |
||
36 | 36 | |
37 | 37 | protected $whitelist = false; |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $name |
|
41 | + */ |
|
39 | 42 | public function __construct($name = null, $options = array()) { |
40 | 43 | if(is_string($options)) { |
41 | 44 | $options = array('whitelist' => $options); |
@@ -97,6 +97,9 @@ |
||
97 | 97 | return $return; |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param boolean $index |
|
102 | + */ |
|
100 | 103 | function f($index) { |
101 | 104 | return stripslashes($this->row[$index]); |
102 | 105 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $locale Locale/Language to add data for, identical with locale identifier, |
49 | 49 | * see Zend_Locale for more information |
50 | 50 | * @param string $filename XMLTM file to add, full path must be given for access |
51 | - * @param array $option OPTIONAL Options to use |
|
51 | + * @param array $options OPTIONAL Options to use |
|
52 | 52 | * @throws Zend_Translation_Exception |
53 | 53 | * @return array |
54 | 54 | */ |
@@ -116,6 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $filename |
|
121 | + */ |
|
119 | 122 | private function _findEncoding($filename) |
120 | 123 | { |
121 | 124 | $file = file_get_contents($filename, null, null, 0, 100); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $locale Locale/Language to add data for, identical with locale identifier, |
49 | 49 | * see Zend_Locale for more information |
50 | 50 | * @param string $filename XMLTM file to add, full path must be given for access |
51 | - * @param array $option OPTIONAL Options to use |
|
51 | + * @param array $options OPTIONAL Options to use |
|
52 | 52 | * @throws Zend_Translation_Exception |
53 | 53 | * @return array |
54 | 54 | */ |
@@ -116,6 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $filename |
|
121 | + */ |
|
119 | 122 | private function _findEncoding($filename) |
120 | 123 | { |
121 | 124 | $file = file_get_contents($filename, null, null, 0, 100); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $locale Locale/Language to add data for, identical with locale identifier, |
49 | 49 | * see Zend_Locale for more information |
50 | 50 | * @param string $filename XMLTM file to add, full path must be given for access |
51 | - * @param array $option OPTIONAL Options to use |
|
51 | + * @param array $options OPTIONAL Options to use |
|
52 | 52 | * @throws Zend_Translation_Exception |
53 | 53 | * @return array |
54 | 54 | */ |
@@ -116,6 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $filename |
|
121 | + */ |
|
119 | 122 | private function _findEncoding($filename) |
120 | 123 | { |
121 | 124 | $file = file_get_contents($filename, null, null, 0, 100); |
@@ -53,6 +53,7 @@ |
||
53 | 53 | * Set actions that are exempt from validation |
54 | 54 | * |
55 | 55 | * @param array |
56 | + * @param string[] $actions |
|
56 | 57 | */ |
57 | 58 | public function setValidationExemptActions($actions) { |
58 | 59 | $this->validationExemptActions = $actions; |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | /** |
464 | 464 | * Returns the part of the URL, 'http://www.mysite.com'. |
465 | 465 | * |
466 | - * @return boolean|string The domain from the PHP environment. Returns FALSE is this environment variable isn't |
|
466 | + * @return string|false The domain from the PHP environment. Returns FALSE is this environment variable isn't |
|
467 | 467 | * set. |
468 | 468 | */ |
469 | 469 | public static function protocolAndHost() { |
@@ -747,7 +747,6 @@ discard block |
||
747 | 747 | /** |
748 | 748 | * Takes a $_SERVER data array and extracts HTTP request headers. |
749 | 749 | * |
750 | - * @param array $data |
|
751 | 750 | * @return array |
752 | 751 | */ |
753 | 752 | public static function extract_request_headers(array $server) { |
@@ -780,7 +779,7 @@ discard block |
||
780 | 779 | |
781 | 780 | /** |
782 | 781 | * Returns true if the given file exists. |
783 | - * @param $file Filename specified relative to the site root |
|
782 | + * @param string $file Filename specified relative to the site root |
|
784 | 783 | */ |
785 | 784 | public static function fileExists($file) { |
786 | 785 | // replace any appended query-strings, e.g. /path/to/foo.php?bar=1 to /path/to/foo.php |
@@ -296,6 +296,7 @@ |
||
296 | 296 | * |
297 | 297 | * Seperated out from parse partially so that we can recurse if there are multiple statics |
298 | 298 | * being declared in a comma seperated list |
299 | + * @param string $class |
|
299 | 300 | */ |
300 | 301 | function parseStatic($access, $class) { |
301 | 302 | $variable = null; |
@@ -214,6 +214,12 @@ discard block |
||
214 | 214 | set_exception_handler('exceptionHandler'); |
215 | 215 | } |
216 | 216 | |
217 | + /** |
|
218 | + * @param integer $errno |
|
219 | + * @param string $errstr |
|
220 | + * @param string $errfile |
|
221 | + * @param integer $errline |
|
222 | + */ |
|
217 | 223 | public static function noticeHandler($errno, $errstr, $errfile, $errline, $errcontext) { |
218 | 224 | if(error_reporting() == 0) return; |
219 | 225 | ini_set('display_errors', 0); |
@@ -240,10 +246,10 @@ discard block |
||
240 | 246 | /** |
241 | 247 | * Handle a non-fatal warning error thrown by PHP interpreter. |
242 | 248 | * |
243 | - * @param unknown_type $errno |
|
244 | - * @param unknown_type $errstr |
|
245 | - * @param unknown_type $errfile |
|
246 | - * @param unknown_type $errline |
|
249 | + * @param integer $errno |
|
250 | + * @param string $errstr |
|
251 | + * @param string $errfile |
|
252 | + * @param integer $errline |
|
247 | 253 | * @param unknown_type $errcontext |
248 | 254 | */ |
249 | 255 | public static function warningHandler($errno, $errstr, $errfile, $errline, $errcontext) { |
@@ -274,8 +280,8 @@ discard block |
||
274 | 280 | * |
275 | 281 | * Runtime execution dies immediately once the error is generated. |
276 | 282 | * |
277 | - * @param unknown_type $errno |
|
278 | - * @param unknown_type $errstr |
|
283 | + * @param integer $errno |
|
284 | + * @param string $errstr |
|
279 | 285 | * @param unknown_type $errfile |
280 | 286 | * @param unknown_type $errline |
281 | 287 | * @param unknown_type $errcontext |
@@ -315,7 +321,7 @@ discard block |
||
315 | 321 | * or "tech-speak". Used in the HTTP Header and ajax responses. |
316 | 322 | * @param string $friendlyErrorDetail Detailed user-focused message. Is just used if no {@link ErrorPage} is found |
317 | 323 | * for this specific status code. |
318 | - * @return string HTML error message for non-ajax requests, plaintext for ajax-request. |
|
324 | + * @return boolean HTML error message for non-ajax requests, plaintext for ajax-request. |
|
319 | 325 | */ |
320 | 326 | public static function friendlyError($statusCode=500, $friendlyErrorMessage=null, $friendlyErrorDetail=null) { |
321 | 327 | if(!$friendlyErrorMessage) { |
@@ -388,6 +394,7 @@ discard block |
||
388 | 394 | * @param unknown_type $errfile |
389 | 395 | * @param unknown_type $errline |
390 | 396 | * @param unknown_type $errcontext |
397 | + * @param string $errtype |
|
391 | 398 | */ |
392 | 399 | public static function showError($errno, $errstr, $errfile, $errline, $errcontext, $errtype) { |
393 | 400 | if(!headers_sent()) { |