/** * Class constructor * * @param array $config Configuration parameters */ public function __construct($config = array()) { parent::__construct($config); $platform = F0FPlatform::getInstance(); $this->perms->editown = $platform->authorise('core.edit.own', $this->input->getCmd('option', 'com_foobar')); $this->perms->manage = $platform->authorise('core.manage', $this->input->getCmd('option', 'com_foobar')); $layout = $this->input->get('layout', null, 'cmd'); $toolbar = $this->input->get('toolbar', null, 'cmd'); $this->isModule = $layout == 'module'; $this->isModal = $layout == 'modal'; $this->isSubview = $toolbar == 'none'; $this->isBackend = $platform->isBackend(); if (!$this->isBackend && !$this->isSubview) { $this->renderFrontendSubmenu = true; $this->renderFrontendButtons = true; } }
function __construct($config = array()) { parent::__construct($config); $this->renderFrontendButtons = true; }