Get the defined actions for a context

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  string $context
@return array
339057
public function getActions($context = 'bottom')
    {
        $returnValue = array();

		if(isset($this->actions[$context])){
			$returnValue = $this->actions[$context];
		}

        return (array) $returnValue;
    }
819856
public function getFieldLayouts(&$context)
    {
        $context['fieldLayouts'] = [];

        foreach ($context['fields'] as $field) {

            $layouts = [];
            foreach ($this->_getRelatedLayoutIds($field) as $row) {
                $layouts[] = $this->_getLayoutData($row);
            }

            $context['fieldLayouts'][] = [
                'field'   => $field,
                'layouts' => $layouts,
            ];
        }
    }
292280
protected function get_string_filters($context) {
        if (!isset($this->stringfilters[$context->id])) {
            $this->load_filters($context);
        }
        return $this->stringfilters[$context->id];
    }
413294
public function run($context)
    {
        foreach ($this->actions as $step) {
            /** @var $step Action  **/
            codecept_debug("- $step");
            try {
                call_user_func_array([$context, $step->getAction()], $step->getArguments());
            } catch (\Exception $e) {
                $class = get_class($e); // rethrow exception for a specific action
                throw new $class($e->getMessage() . "\nat $step");
            }
        }
    }
306274
protected function _actionReorder($context)
    {
        $photo_ids = (array) AnConfig::unbox($context->data->photo_id);
        $this->getItem()->reorder($photo_ids);

        return $this->getItem();
    }
792644
public function process($context)
    {
        $context->setContents($this->setCDataPlaceholder($context->getContents(), $context->getPlaceholderContainer()));

        return $context->setContents($this->setConditionalCommentsPlaceholder($context->getContents(), $context->getPlaceholderContainer()));
    }
76921
protected function _actionEdit($context)
    {
        $data = $context->data;
        $this->getItem()->body = $data->body;

        return $this->getItem();
    }
880922
public function getActor(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->actor) {
            $ret = $this->getService('repos:actors.actor')->fetch($data->actor);
        } else {
            $ret = get_viewer();
        }

        $this->actor = $ret;

        return $this->actor;
    }
953994
protected function _actionGet(DispatcherContext $context)
    {
        $controller = $this->getController();

        if($controller instanceof ControllerViewable) {
            $result = $controller->execute('render', $controller->getContext($context));
        } else {
            throw new DispatcherExceptionMethodNotAllowed('Method GET not allowed');
        }

        return $result;
    }
1277881
public function getFields($model, $context = null)
    {
        if (is_array($this->fields)) {
            return $this->fields;
        } elseif (is_callable($this->fields)) {
            return call_user_func($this->fields, $this, $context, $model);
        }
        return static::getDefaultFields($model);
    }
373256
public function getChildren(OperationContextInterface $context = null)
    {
        $context = $this->ensureContext($context);
        $children = $this->getBinding()->getNavigationService()->getChildren(
            $this->getRepositoryId(),
            $this->getId(),
            $context->getQueryFilterString(),
            $context->getOrderBy(),
            $context->isIncludeAllowableActions(),
            $context->getIncludeRelationships(),
            $context->getRenditionFilterString(),
            $context->isIncludePathSegments()
        );

        $result = [];
        $objectFactory = $this->getObjectFactory();
        foreach ($children->getObjects() as $objectData) {
            if ($objectData->getObject() !== null) {
                $result[] = $objectFactory->convertObject($objectData->getObject(), $context);
            }
        }

        return $result;
    }
372605
protected function failedAction(Context $context)
    {
        $input = function () use ($context) {
            return [$context];
        };

        return $this->newInstance(
            $input,
            [$this->matcher, 'getName'],
            $this->failResponder
        );
    }
394814
public static function runtime($context) {
        $class = new \ReflectionClass($context['runtime']);
        $ret = '';
        $methods = static::getClassMethods($context, $class);

        $exports = array_keys($context['usedCount']['runtime']);

        while (true) {
            if (array_sum(array_map(function ($name) use (&$exports, $methods) {
                $n = 0;
                foreach ($methods[$name][1] as $child => $count) {
                    if (!in_array($child, $exports)) {
                       $exports[] = $child;
                       $n++;
                    }
                }
                return $n;
            }, $exports)) == 0) {
                break;
            }
        }

        foreach ($exports as $export) {
            $ret .= ($methods[$export][0] . "\n");
        }

        return $ret;
    }
845490
protected function resolveContext(array $context = [])
    {
        return array_merge([
            'json_decode_assoc' => $this->assoc,
            'json_decode_depth' => $this->depth,
            'json_decode_options' => $this->optionsMask,
        ], $context);
    }
394467
private function parseContext($context)
    {
        $debugBackTrace = debug_backtrace();
        if(!isset($context['trace']))
        {
            $context['trace'] = $this->getTrace($debugBackTrace);
        }
        if(!isset($context['errorFile']))
        {
            list($file, $line) = $this->getErrorFile($debugBackTrace);
            $context['errorFile'] = $file;
            $context['errorLine'] = $line;
        }
        return $context;
    }
1048647
public function render($context)
    {
        $closure = $this->options['callable'];
        return $closure($context, $this->getCell()->getActualRow());
    }
1167795
protected function _actionGet(AnCommandContext $context)
    {
        $this->setView('searches');

        if ($this->actor) {
            $this->getToolbar('actorbar')->setTitle($this->actor->name);
            $this->getService()->set('com:search.owner', $this->actor);
        }

        $this->_state
             ->insert('term')
             ->insert('scope')
             ->insert('search_comments')
             ->insert('search_nearby')
             ->insert('search_range')
             ->insert('search_leaders');

        $this->getService('anahita:language')->load('com_actors');

        $this->keywords = array_filter(explode(' ', $this->term));

        $this->scopes = $this->getService('com:components.domain.entityset.scope');

        $this->current_scope = $this->scopes->find($this->scope);

        $query = $this->getService('com:search.domain.query.node')
                      ->searchTerm($this->term)
                      ->limit($this->limit, $this->start);

        if ($this->actor) {
           $query->ownerContext($this->actor);
        }

        if ($this->search_comments) {
            $query->searchComments($this->search_comments);
        }

        if ($this->search_nearby && ($lnglat = $this->_geocoder->geocode($this->search_nearby))) {
            $query->searchNearby($lnglat);
            $query->searchRange($this->search_range);
        }

        if ($this->current_scope) {
            $query->scope($this->current_scope);
        }

        if ($this->sort == 'recent') {
            $query->order('node.created_on', 'DESC');
        } elseif ($this->search_nearby && $this->sort == 'distance' ) {
            $query->order('distance', 'ASC');
        } else {
            $query->orderByRelevance();
        }

        //print str_replace('#_', 'jos', $query);

        $entities = $query->toEntitySet();

        $this->_state->setList($entities);

        parent::_actionGet($context);
    }