@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * @param string|callable $code Either a string that can evaluate to an expression |
107 | 107 | * to rewrite links (depreciated), or a callable that takes a single |
108 | 108 | * parameter and returns the rewritten URL |
109 | - * @return The content with all links rewritten as per the logic specified in $code |
|
109 | + * @return string content with all links rewritten as per the logic specified in $code |
|
110 | 110 | */ |
111 | 111 | public static function urlRewriter($content, $code) { |
112 | 112 | if(!is_callable($code)) { |
@@ -250,6 +250,9 @@ discard block |
||
250 | 250 | return count($result) ? $result : null; |
251 | 251 | } |
252 | 252 | |
253 | + /** |
|
254 | + * @param string $content |
|
255 | + */ |
|
253 | 256 | public static function getLinksIn($content) { |
254 | 257 | return self::findByTagAndAttribute($content, array("a" => "href")); |
255 | 258 | } |
@@ -292,6 +295,7 @@ discard block |
||
292 | 295 | |
293 | 296 | /** |
294 | 297 | * Set the maximum age of this page in web caches, in seconds |
298 | + * @param integer $age |
|
295 | 299 | */ |
296 | 300 | public static function set_cache_age($age) { |
297 | 301 | self::$cache_age = $age; |
@@ -304,11 +308,17 @@ discard block |
||
304 | 308 | self::$modification_date = $timestamp; |
305 | 309 | } |
306 | 310 | |
311 | + /** |
|
312 | + * @param integer $timestamp |
|
313 | + */ |
|
307 | 314 | public static function register_modification_timestamp($timestamp) { |
308 | 315 | if($timestamp > self::$modification_date) |
309 | 316 | self::$modification_date = $timestamp; |
310 | 317 | } |
311 | 318 | |
319 | + /** |
|
320 | + * @param string $etag |
|
321 | + */ |
|
312 | 322 | public static function register_etag($etag) { |
313 | 323 | if (0 !== strpos($etag, '"')) { |
314 | 324 | $etag = sprintf('"%s"', $etag); |
@@ -469,7 +479,7 @@ discard block |
||
469 | 479 | } |
470 | 480 | |
471 | 481 | /** |
472 | - * @param SS_HTTPResponse|string $response |
|
482 | + * @param SS_HTTPResponse|null $response |
|
473 | 483 | * |
474 | 484 | * @return string|false |
475 | 485 | */ |