Returns a single image action handler
@param string $action_id
@return array
768171
public function getActionHandler($action_id)
    {
        $handlers = $this->getActionHandlers();
        return empty($handlers[$action_id]) ? array() : $handlers[$action_id];
    }
537491
public function getActions()
    {
        if (null === $this->actions) {
            $this->actions = array();
            $this->findActions();
        }

        return $this->actions;
    }
582318
public ActionResult getActionResult(String actionId) {
        if (actionId == null) {
            return null;
        }
        for (ListIterator<ContentResult> iterator = listIterator(size()); iterator.hasPrevious();) {
            ContentResult contentResult = iterator.previous();
            ActionResult actionResult = contentResult.getActionResult(actionId);
            if (actionResult != null) {
                return actionResult;
            }
        }
        return null;
    }
950016
public function findImageSubmitButton($id = null, array $relations = array())
    {
        return new Accessor\Form\ImageSubmitButtonAccessor($id, $relations, $this->con);
    }
554145
public function getAction($key)
    {
        if (isset($this->actions[$key])) {
            return $this->actions[$key];
        }

        return null;
    }
49432
protected function processImage($action, InterventionImage $image)
    {
        $action = explode('_', $action);

        if (count($action) > 1)
        {
            list($method, $param) = $action;
        } else
        {
            $method = current($action);
            $param = [];
        }

        if ($method === 'crop')
        {
            $params = explode(',', $param);

            call_user_func_array([$image, 'crop'], $params);
        } else
        {
            call_user_func([$image, $method], $param);
        }

        return $this->saveImage($image);
    }
68045
protected static function triggerAopEvent(
        $controller_id,
        $action_name,
        $request = null,
        $response = null
    ) {
    
        $context = [
            'controller_id' => $controller_id,
            'action_id' => $action_name,
        ];
        if ($request) {
            $context['request'] = $request;
        }
        if ($response) {
            $context['response'] = $response;
        }
        Lb::app()->trigger(
            Event::AOP_EVENT . '_' . implode('@', [$controller_id, $action_name]),
            new AopEvent($context)
        );
        Lb::app()->trigger(
            Event::REQUEST_EVENT,
            new RequestEvent($context)
        );
    }
1191462
public function actionInfo($id)
    {
        Url::remember('', 'actions-redirect');
        $user = $this->findModel($id);

        return $this->render('_info', [
            'user' => $user,
        ]);
    }
824952
public function getTriggerById($trigger_id) {
        $data = [ ];
        $data['trigger_id'] = $trigger_id;

        $result = $this->apiGet('trigger', $data);
        return $result;
    }
191752
public function getAction()
    {
        if (isset($this->uris[1])) {
            $_action = $this->uris[1];
        } else {
            throw new NotFoundException('Cannot dispatch action name.');
        }

        return strip_tags($_action);
    }
376950
public function handle($action, $id)
    {
        $tempFile = $this->tempStorage->get($id);

        if (!$tempFile) {
            return null;
        }

        return $this->handleTempFile($action, $tempFile);
    }
64413
public function get_action_file()
    {
        if (!empty($this->action_map[$this->action])) {
            return $this->action_map[$this->action];
        }

        return strtr($this->action, '-', '_') . '.inc';
    }
321026
protected function fetchActionScope($actionId)
    {
        if (empty($this->actionScopes)) {
            return null;
        }

        $ownerId = $this->owner->getUniqueId();
        foreach ($this->actionScopes as $actionPattern => $scope) {

            if (StringHelper::matchWildcard(
                "$ownerId/$actionPattern",
                $actionId
            )) {
                return $scope;
            }
        }

        return null;
    }
1131489
public function getActions()
    {
        $actions = [];
        foreach ($this->data['actions'] as $action) {
            $name = $action['name'];
            $time = isset($action['time'])
                ? $action['time']
                : 0;
            if (isset($actions[$name])) {
                $actions[$name]['count'] += 1;
                $actions[$name]['time'] += $time;
            } else {
                $actions[$name] = ['name' => $name, 'count' => 1, 'time' => $time];
            }
        }

        return array_values($actions);
    }
797350
public function getDispatchAction()
    {
        $args = $this->request->getAsArray('args');
        $arg = array_shift($args);
        if (preg_match('/^(\w+\.\w+)$/', $arg, $matches)) {
            $action = $matches[1];
            return $action;
        }
    }
1240062
public function deleteAction($id)
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('module-actions', 'DELETE')) {
            throw $this->createAccessDeniedException();
        }

        $formHandlerName    =   $this->getParameter('bacon_acl.forms.module_actions_form_handler_class');

        $entity = $this->getRepository()->find($id);

        if (!$entity) {
            return $this->createNotFoundException('Entity not Exists!');
        }

        $handler = new $formHandlerName(
            $this->createDeleteForm('module_actions_delete', $entity),
            $this->get('doctrine')->getManager(),
            $this->get('session')->getFlashBag()
        );

        $handler->delete($entity);

        return $this->redirect($this->generateUrl('module_actions'));
    }
1324585
public function getDispatchAction()
    {
        $params = $this->request->getAll();
        foreach (array_keys($params) as $key) {
            if (preg_match('/^dispatch-(.+)/', $key, $matches)) {
                $action = str_replace('-', '.', $matches[1]);
                return $action;
            }
        }
    }