| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/administrator/components/com_mobilejoomla/classes/ |
Upload File : |
<?php
/**
* Mobile Joomla!
* http://www.mobilejoomla.com
*
* @version 1.2.9
* @license GNU/GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
* @copyright (C) 2008-2014 Kuneri Ltd.
* @date June 2014
*/
class MJToolbar extends JObject
{
var $_title = null;
var $_buttons = array();
var $_hideBackButton = false;
var $_hideHomeButton = false;
function setTitle($title)
{
$this->_title = $title;
}
function getTitle()
{
return $this->_title;
}
function appendButton($pos, $url, $icon = '', $title = '', $options = array())
{
if(!isset($this->_buttons[$pos]))
$this->_buttons[$pos] = array();
$this->_buttons[$pos][] = $this->_makeButton($url, $icon, $title, $options);
}
function prependButton($pos, $url, $icon = '', $title = '', $options = array())
{
if(!isset($this->_buttons[$pos]))
$this->_buttons[$pos] = array();
array_unshift($this->_buttons[$pos], $this->_makeButton($url, $icon, $title, $options));
}
function _makeButton($url, $icon, $title, $options)
{
$button = new stdClass;
$button->url = $url;
$button->icon = $icon;
$button->title = $title;
$button->options = $options;
return $button;
}
function getButtons($pos)
{
return isset($this->_buttons[$pos]) ? $this->_buttons[$pos] : null;
}
function hideBackButton($status = true)
{
$this->_hideBackButton = $status;
}
function isBackButtonHidden()
{
return $this->_hideBackButton;
}
function hideHomeButton($status = true)
{
$this->_hideHomeButton = $status;
}
function isHomeButtonHidden()
{
return $this->_hideHomeButton;
}
}