Lines Matching +full:runs +full:- +full:on
37 * Sets up the correct action based on the $ACT global. Writes back
45 $this->disabled = explode(',', $conf['disableactions']);
46 $this->disabled = array_map('trim', $this->disabled);
49 $this->setupAction($ACT);
50 $ACT = $this->action->getActionName();
70 * Instantiates the right class, runs permission checks and pre-processing and
83 if ($evt->advise_before()) {
84 $this->action = $this->loadAction($actionname);
85 $this->checkAction($this->action);
86 $this->action->preProcess();
89 $this->action = new Plugin($actionname);
91 $evt->advise_after();
94 $actionname = $e->getNewAction();
98 msg('Action disabled: ' . hsc($presetup), -1);
102 if ($e->displayToUser()) {
103 msg(hsc($e->getMessage()), -1);
107 $this->transitionAction($presetup, $actionname);
109 msg('Action unknown: ' . hsc($actionname), -1);
111 $this->transitionAction($presetup, $actionname);
113 $this->handleFatalException($e);
128 $this->transitions++;
132 $this->handleFatalException(new FatalException('Infinite loop in actions', 500, $e));
136 if ($this->transitions >= self::MAX_TRANSITIONS) {
137 … $this->handleFatalException(new FatalException('Maximum action transitions reached', 500, $e));
141 $this->setupAction($to);
155 http_status($e->getCode());
163 $msg = 'Something unforeseen has happened: ' . $e->getMessage();
175 * Example: 'export_raw' -> ExportRaw then 'export' -> 'Export'
209 if (in_array($action->getActionName(), $this->disabled)) {
213 $action->checkPreconditions();
221 if ($perm < $action->minimumPermission()) {
233 return $this->action;