@@ -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); |
@@ -501,7 +510,7 @@ discard block |
||
| 501 | 510 | } |
| 502 | 511 | |
| 503 | 512 | /** |
| 504 | - * @param SS_HTTPResponse|string $response |
|
| 513 | + * @param SS_HTTPResponse|null $response |
|
| 505 | 514 | * |
| 506 | 515 | * @return string|false |
| 507 | 516 | */ |
@@ -543,7 +552,6 @@ discard block |
||
| 543 | 552 | /** |
| 544 | 553 | * Combine vary strings |
| 545 | 554 | * |
| 546 | - * @param string $vary,... Each vary as a separate arg |
|
| 547 | 555 | * @return string |
| 548 | 556 | */ |
| 549 | 557 | protected static function combineVary($vary) |