1 | <?php |
||
19 | class CacheHelper { |
||
20 | |||
21 | const VERSION = '0.1'; |
||
22 | |||
23 | /** |
||
24 | * @var BlobStore |
||
25 | */ |
||
26 | private $blobStore; |
||
27 | |||
28 | /** |
||
29 | * @var Options |
||
30 | */ |
||
31 | private $options; |
||
32 | |||
33 | /** |
||
34 | * @since 1.0 |
||
35 | * |
||
36 | * @param BlobStore $blobStore |
||
37 | * @param Options $options |
||
38 | */ |
||
39 | 5 | public function __construct( BlobStore $blobStore, Options $options ) { |
|
43 | |||
44 | /** |
||
45 | * @since 1.0 |
||
46 | * |
||
47 | * @param Options $options |
||
48 | * |
||
49 | * @return CacheHelper |
||
50 | */ |
||
51 | 1 | public static function newFromOptions( Options $options ) { |
|
72 | |||
73 | /** |
||
74 | * @since 1.0 |
||
75 | * |
||
76 | * @param Title $title |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | 3 | public function getHashFrom( Title $title = null ) { |
|
95 | |||
96 | /** |
||
97 | * @since 1.0 |
||
98 | * |
||
99 | * @param string $title |
||
100 | * |
||
101 | * @return Title|null |
||
102 | */ |
||
103 | 1 | public function newTitleFromText( $title ) { |
|
123 | |||
124 | /** |
||
125 | * @since 1.0 |
||
126 | * |
||
127 | * @return BlobStore |
||
128 | */ |
||
129 | 1 | public function getBlobStore() { |
|
132 | |||
133 | /** |
||
134 | * @since 1.0 |
||
135 | * |
||
136 | * @param Title $title |
||
137 | */ |
||
138 | 1 | public function invalidateCache( Title $title ) { |
|
142 | |||
143 | } |
||
144 |