1 | <?php |
||
16 | class PagePurger extends Service { |
||
17 | |||
18 | /** |
||
19 | * @since 0.3 |
||
20 | * |
||
21 | * @brief Purge a single page |
||
22 | * |
||
23 | * Purges a single page by submitting a |
||
24 | * 'purge' action to the mediawiki api |
||
25 | * with the parameter 'pageids' set to |
||
26 | * the singe page id |
||
27 | * |
||
28 | * @param Page $page the page that is going to be purged |
||
29 | * |
||
30 | * @return bool return true if the purge was successful |
||
31 | */ |
||
32 | public function purge( Page $page ) { |
||
42 | |||
43 | /** |
||
44 | * @since 0.7 |
||
45 | * |
||
46 | * @brief Purge multiple pages |
||
47 | * |
||
48 | * Purges all the pages of the Pages object |
||
49 | * by submitting a 'purge' action to the mediawiki |
||
50 | * api with the parameter 'pageids' set to be the |
||
51 | * pages ids in multiple-value seperation. |
||
52 | * |
||
53 | * @param Pages $pages the pages that are going to be purged |
||
54 | * |
||
55 | * @return Pages the pages that have been purged successfully |
||
56 | */ |
||
57 | public function purgePages( Pages $pages ) { |
||
100 | |||
101 | /** |
||
102 | * @since 0.6 |
||
103 | * |
||
104 | * @param ApiGenerator $generator |
||
105 | * |
||
106 | * @return bool |
||
107 | */ |
||
108 | public function purgeGenerator( ApiGenerator $generator ) { |
||
115 | |||
116 | } |
||
117 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.