[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\Action; 4 5 use dokuwiki\Action\Exception\ActionAbort; 6 7 /** 8 * Class Cancel 9 * 10 * Alias for show. Aborts editing 11 * 12 * @package dokuwiki\Action 13 */ 14 class Cancel extends AbstractAliasAction 15 { 16 /** 17 * @inheritdoc 18 * @throws ActionAbort 19 */ 20 public function preProcess() 21 { 22 global $ID; 23 unlock($ID); 24 25 // continue with draftdel -> redirect -> show 26 throw new ActionAbort('draftdel'); 27 } 28 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body