| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/libraries/msframework/helpers/ |
Upload File : |
<?php
/**
* MS Framework
*
* @package MS Framework Library
* @version 1.2.1.573
*
* @author Michael Snoeren
* @link https://snoerendevelopment.nl/
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
// Deny direct access
defined('_JEXEC') or die;
class MSFrameworkView extends JViewLegacy
{
/**
* View Variables
* @var Mixed
* @access Protected
*/
// Joomla! Layout
protected $toolbar = null;
protected $msg = null;
protected $footer = null;
// Globals
protected $app = null;
protected $input = null;
protected $doc = null;
protected $user = null;
// ACL
protected $canDo = null;
/**
* Constructor
* @param Array $config Config array. Optional
* @access Public
* @return Void
*/
public function __construct($config = [])
{
// Let Joomla! do its job
parent::__construct($config);
// Initialise globals
$this->app = JFactory::getApplication();
$this->input = $this->app->input;
$this->doc = JFactory::getDocument();
$this->user = JFactory::getUser();
// Initialise Layouts
$this->toolbar = JToolbar::getInstance();
$this->msg = $this->doc->loadRenderer('message');
$this->footer = MSFrameworkFooter::getInstance();
}
/**
* Display the view
* @param String $tpl
* @access Public
* @return Void
*/
public function display($tpl = null)
{
// Check for errors
if (count($errors = $this->get('Errors'))) {
return $this->app->enqueueMessage(implode('<br />', $errors), 'warning') && false;
}
return parent::display($tpl);
}
}