@@ -282,6 +282,9 @@ discard block |
||
| 282 | 282 | return count($result) ? $result : null; |
| 283 | 283 | } |
| 284 | 284 | |
| 285 | + /** |
|
| 286 | + * @param string $content |
|
| 287 | + */ |
|
| 285 | 288 | public static function getLinksIn($content) { |
| 286 | 289 | return self::findByTagAndAttribute($content, array("a" => "href")); |
| 287 | 290 | } |
@@ -338,11 +341,17 @@ discard block |
||
| 338 | 341 | self::$modification_date = $timestamp; |
| 339 | 342 | } |
| 340 | 343 | |
| 344 | + /** |
|
| 345 | + * @param integer $timestamp |
|
| 346 | + */ |
|
| 341 | 347 | public static function register_modification_timestamp($timestamp) { |
| 342 | 348 | if($timestamp > self::$modification_date) |
| 343 | 349 | self::$modification_date = $timestamp; |
| 344 | 350 | } |
| 345 | 351 | |
| 352 | + /** |
|
| 353 | + * @param string $etag |
|
| 354 | + */ |
|
| 346 | 355 | public static function register_etag($etag) { |
| 347 | 356 | if (0 !== strpos($etag, '"')) { |
| 348 | 357 | $etag = sprintf('"%s"', $etag); |
@@ -489,7 +498,7 @@ discard block |
||
| 489 | 498 | } |
| 490 | 499 | |
| 491 | 500 | /** |
| 492 | - * @param SS_HTTPResponse|string $response |
|
| 501 | + * @param SS_HTTPResponse|null $response |
|
| 493 | 502 | * |
| 494 | 503 | * @return string|false |
| 495 | 504 | */ |