render the form actions by context

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

		if(isset($this->actions[$context])){

			$decorator = null;
			if(!is_null($this->getDecorator('actions-'.$context))){
			 	$decorator = $this->getDecorator('actions-'.$context);
			}
			else if(!is_null($this->getDecorator('actions'))){
			 	$decorator = $this->getDecorator('actions');
			}

			if(!is_null($decorator)){
				$returnValue .= $decorator->preRender();
			}

			foreach($this->actions[$context] as $action){
				$returnValue .= $action->render();
			}

			if(!is_null($decorator)){
				$returnValue .= $decorator->postRender();
			}

		}



        return (string) $returnValue;
    }
986120
public function render($context = [])
    {
        $element = clone $this->element;

        $value = $this->element->getAttribute('value', false);
        if ($value !== false) {
            $this->element->getAttributes()->remove('value');
        }
        $html = parent::render($context);
        $this->element = $element;
        return $html;
    }
574314
protected function _actionRender(ViewContext $context)
    {
        $data = ObjectConfig::unbox($context->data);
        $path = $this->qualifyLayout($context->layout);

        //Render the template
        $content = $this->getTemplate()
            ->setParameters($context->parameters)
            ->render($path, $data);

        return $content;
    }
1117559
public function render(Context $context)
    {
        $result = '';
        foreach ($this->children as $child) {
            $result .= $child->render($context);
        }
        return $result;
    }
914913
public function render(array $context = [])
    {
        if ($template = locate_template($path = $this->getRelativePath(), false, false)) {
            $this->doActions();

            extract(apply_filters("tonik/gin/template/context/{$this->getFilename()}", $context));

            require $template;

            return;
        }

        throw new FileNotFoundException("Template file [{$this->getRelativePath()}] cannot be located.");
    }
167701
protected function _beforeRender(ControllerContext $context)
    {
        $controller = $context->getSubject();

        if (!$controller->isDispatched()) {
            $controller->loadLanguage();
        }
    }
760537
public function render(array $data, ContextInterface $context)
    {
        $data += ['class' => ''];
        $data['class'] .= ' filled-in ';
        $data['class'] = trim($data['class']);

        return parent::render($data, $context);
    }
1185750
function render($context = null, $vars = array())
    {
        $directives = $this->getDirectives();

        foreach ($directives as $directive) {
            list($i, $name, $argv) = $directive;
            $this->executeDirective($name, $context, $argv);
        }

        return $this->getProcessedSource();
    }
1097919
protected function _actionBrowse(AnCommandContext $context)
    {
        $entities = parent::_actionBrowse($context);

        if ($this->type) {
            $entities->where('folder', '=', $this->type);
        }

        $entities->order($this->sort);

        return $entities;
    }
845774
protected function _render(AnCommandContext $context)
    {
        dispatch_plugin('system.onBeforeRender', array( $context ));

        $config = array(
            'request' => $context->request,
            'response' => $context->response,
            'theme' => $this->_application->getTemplate(),
        );

        $layout = $this->_request->get('tmpl', 'default');

        $this->getService('com:application.controller.default', $config)
             ->layout($layout)
             ->render();

        dispatch_plugin('system.onAfterRender', array( $context ));
    }
404774
public function render(array $data, ContextInterface $context)
    {
        $data = $this->applyButtonClasses($data);

        return parent::render($data, $context);
    }
1185160
protected function _actionRender(KViewContext $context)
    {
        if(empty($this->module->content))
        {
            $format = $this->getFormat(); //format cannot be changed through context
            $layout = $context->layout;

            if (is_string($layout) && strpos($layout, '.') === false)
            {
                $identifier = $this->getIdentifier()->toArray();
                $identifier['name'] = $layout;

                $layout = (string) $this->getIdentifier($identifier);
            }

            //Unpack the data (first level only)
            $data = array();
            foreach($context->data as $key => $value) {
                $data[$key] = $value;
            }

            $this->_content = $this->getTemplate()
                ->loadFile($layout.'.'.$format)
                ->setParameters($context->parameters)
                ->render($data);
        }
        else
        {
            $this->_content = $this->getTemplate()
                ->loadString($this->module->content)
                ->setParameters($context->parameters)
                ->filter();
        }

        return $this->_content;
    }
588580
protected function _actionRender(ViewContext $context)
    {
        $content = $context->content;

        if(is_string($content)) {
            $content = trim($content);
        }

        return $content;
    }
374211
protected function _actionGet(AnCommandContext $context)
    {
        $action = null;

        if ($this->_request->get) {
            $action = strtolower('get'.$this->_request->get);
        } else {
            $action = AnInflector::isPlural($this->view) ? 'browse' : 'read';
        }

        $result = null;

        if (in_array($action, $this->getActions())) {
            $result = $this->execute($action, $context);

            if (is_string($result) || $result === false) {
                $context->response->setContent($result.' ');
            }
        }

        $view = $this->getView();

        if (!$context->response->getContent()) {
            if ($context->params) {
                foreach ($context->params as $key => $value) {
                    $view->set($key, $value);
                }
            }
            $content = $view->display();
            //Set the data in the response
            $context->response->setContent($content);
        }

        $context->response->setContentType($view->mimetype);

        return $context->response->getContent();
    }
15172
protected function _actionRender(AnCommandContext $context)
    {
        if ($context->data instanceof Exception) {
            $this->getView()->content($context->data);
        } else {
            $this->getView()->content($context->response->getContent());
        }

        $content = $this->getView()->display();

        $context->response->setContent($content);
        $context->response->setContentType($this->getView()->mimetype);
    }
1181530
public function render($context)
    {
        $cell = $this->getCell();
        $cell->addClass('editable');
        $cell->addAttr('data-column', $cell->getHeader()->getName());
        return $context;
    }
809839
public function create($context = null)
    {
        try {
            $this->context = strlen($context) ? $context : $this->getConfig('create[context]', self::CONTEXT_CREATE);
            $this->controller->pageTitle = $this->controller->pageTitle ?: $this->getLang(
                "{$this->context}[title]",
                'backend::lang.form.create_title'
            );

            $model = $this->controller->formCreateModelObject();
            $model = $this->controller->formExtendModel($model) ?: $model;

            $this->initForm($model);
        }
        catch (Exception $ex) {
            $this->controller->handleError($ex);
        }
    }