Lines Matching full:action
13 require_once(DOKU_PLUGIN.'action.php');
22 * Action plugin for Dokuwiki to automatically merge changes with latest
26 * custom action, 'conflictSolving', when needed. That happens when some changes
30 * When a 'conflictSolving' action is received, a conflict solving page is
56 'name' => 'Conflict Merger Plugin (action component)',
119 //$event->data action may come as an array, so it must be cleaned
120 $action = $this->cleanAction($event->data);
122 if ($action != 'edit' && $action != 'save') {
133 if ($action == 'edit' && $_REQUEST['conflictDate'] == $INFO['lastmod']) {
137 if ($action == 'save' && $_REQUEST['conflictDate'] == $INFO['lastmod']) {
199 * Cleans an action.
200 * Some actions may come as an array due to being created like "do[action]".
201 * It returns the cleaned action as a single string with just the action.
203 * @param action The action to clean.
204 * @return The cleaned action.
208 function cleanAction($action) { argument
209 if (is_array($action)) {
210 list($action) = array_keys($action);
213 $action = strtolower($action);
214 $action = preg_replace('/[^1-9a-z_]+/', '', $action);
216 return $action;