Source for file html.php
Documentation is available at html.php
* @package FrameworkOnFramework
* @copyright Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
// Protect from unauthorized access
* FrameworkOnFramework HTML output class. Together with PHP-based view tempalates
* it will render your data into an HTML representation.
* @package FrameworkOnFramework
* @param array $config Configuration parameters
// Make sure $config is an array
$config = (array)
$config;
if ($config['input'] instanceof
FOFInput)
$this->input =
$config['input'];
'create' =>
$platform->authorise('core.create', $this->input->getCmd('option', 'com_foobar')),
'edit' =>
$platform->authorise('core.edit', $this->input->getCmd('option', 'com_foobar')),
'editstate' =>
$platform->authorise('core.edit.state', $this->input->getCmd('option', 'com_foobar')),
'delete' =>
$platform->authorise('core.delete', $this->input->getCmd('option', 'com_foobar')),
$this->assign('aclperms', $perms);
* Renders the link bar (submenu) using Joomla!'s default
* JSubMenuHelper::addEntry method
// Do not render a submenu unless we are in the the admin area
$links =
$toolbar->getLinks();
foreach ($links as $link)
* Runs before rendering the view template, echoing HTML to put before the
* view template's generated HTML
$view =
$this->input->getCmd('view', 'cpanel');
$task =
$this->getModel()->getState('task', 'browse');
// Don't load the toolbar on CLI
$toolbar->perms =
$this->perms;
$toolbar->renderToolbar($view, $task, $this->input);
$renderer->preRender($view, $task, $this->input, $this->config);
* Runs after rendering the view template, echoing HTML to put after the
* view template's generated HTML
$view =
$this->input->getCmd('view', 'cpanel');
$task =
$this->getModel()->getState('task', 'browse');
$renderer->postRender($view, $task, $this->input, $this->config);
Documentation generated on Tue, 19 Nov 2013 15:04:46 +0100 by phpDocumentor 1.4.3