@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * @param array $properties |
| 12 | 12 | * |
| 13 | - * @return HTMLText |
|
| 13 | + * @return string |
|
| 14 | 14 | */ |
| 15 | 15 | public function FieldHolder($properties = array()) { |
| 16 | 16 | return $this->Field($properties); |
@@ -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 |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @param string|callable $code Either a string that can evaluate to an expression |
| 100 | 100 | * to rewrite links (depreciated), or a callable that takes a single |
| 101 | 101 | * parameter and returns the rewritten URL |
| 102 | - * @return The content with all links rewritten as per the logic specified in $code |
|
| 102 | + * @return string content with all links rewritten as per the logic specified in $code |
|
| 103 | 103 | */ |
| 104 | 104 | public static function urlRewriter($content, $code) { |
| 105 | 105 | if(!is_callable($code)) { |
@@ -243,6 +243,9 @@ discard block |
||
| 243 | 243 | return count($result) ? $result : null; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | + /** |
|
| 247 | + * @param string $content |
|
| 248 | + */ |
|
| 246 | 249 | public static function getLinksIn($content) { |
| 247 | 250 | return self::findByTagAndAttribute($content, array("a" => "href")); |
| 248 | 251 | } |
@@ -285,6 +288,7 @@ discard block |
||
| 285 | 288 | |
| 286 | 289 | /** |
| 287 | 290 | * Set the maximum age of this page in web caches, in seconds |
| 291 | + * @param integer $age |
|
| 288 | 292 | */ |
| 289 | 293 | public static function set_cache_age($age) { |
| 290 | 294 | self::$cache_age = $age; |
@@ -296,11 +300,17 @@ discard block |
||
| 296 | 300 | self::$modification_date = $timestamp; |
| 297 | 301 | } |
| 298 | 302 | |
| 303 | + /** |
|
| 304 | + * @param integer $timestamp |
|
| 305 | + */ |
|
| 299 | 306 | public static function register_modification_timestamp($timestamp) { |
| 300 | 307 | if($timestamp > self::$modification_date) |
| 301 | 308 | self::$modification_date = $timestamp; |
| 302 | 309 | } |
| 303 | 310 | |
| 311 | + /** |
|
| 312 | + * @param string $etag |
|
| 313 | + */ |
|
| 304 | 314 | public static function register_etag($etag) { |
| 305 | 315 | self::$etag = $etag; |
| 306 | 316 | } |
@@ -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; |