| @@ 24-30 (lines=7) @@ | ||
| 21 | * @param Page $page |
|
| 22 | * @param array $extraParams |
|
| 23 | */ |
|
| 24 | public function delete( Page $page, array $extraParams = [] ): bool { |
|
| 25 | $this->api->postRequest( new SimpleRequest( |
|
| 26 | 'delete', |
|
| 27 | $this->getDeleteParams( $page->getPageIdentifier(), $extraParams ) |
|
| 28 | ) ); |
|
| 29 | return true; |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * @since 0.2 |
|
| @@ 38-44 (lines=7) @@ | ||
| 35 | * @param Revision $revision |
|
| 36 | * @param array $extraParams |
|
| 37 | */ |
|
| 38 | public function deleteFromRevision( Revision $revision, array $extraParams = [] ): bool { |
|
| 39 | $this->api->postRequest( new SimpleRequest( |
|
| 40 | 'delete', |
|
| 41 | $this->getDeleteParams( $revision->getPageIdentifier(), $extraParams ) |
|
| 42 | ) ); |
|
| 43 | return true; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @since 0.2 |
|