/** * Constructor * Includes files needed for displaying tabs and sets cookie options * * @param int $useCookies If set to 1 cookie will hold last used tab between page refreshes * @param int $ui User interface: 1: frontend, 2: backend * @param int $mode Reserved for future use, short-term workaround for to early script output (was cbCalendar object reference) * @param boolean $outputTabpaneScript TRUE (DEFAULT): output scripts for tabpanes, FALSE: silent, no echo output */ public function __construct($useCookies, $ui, $mode = null, $outputTabpaneScript = true) { parent::__construct(); $this->ui = $ui; if ($outputTabpaneScript) { $this->outputTabJS($useCookies); } }
/** * Constructor * Includes files needed for displaying tabs and sets cookie options * * @param int $useCookies If set to 1 cookie will hold last used tab between page refreshes * @param int $ui User interface: 1: frontend, 2: backend * @param int $mode Reserved for future use, short-term workaround for to early script output (was cbCalendar object reference) * @param boolean $outputTabpaneScript TRUE (DEFAULT): output scripts for tabpanes, FALSE: silent, no echo output */ public function __construct($useCookies, $ui, $mode = null, $outputTabpaneScript = true) { global $_CB_framework; static $scriptOut = false; parent::__construct(); $this->ui = $ui; if ($outputTabpaneScript && !$scriptOut) { $tab = null; if (isset($_GET['tab'])) { $tab = urldecode(stripslashes(cbGetParam($_GET, 'tab', null))); } elseif (isset($_POST['tab'])) { $tab = stripslashes(cbGetParam($_POST, 'tab', null)); } $js = "\$( '.cbTabs' ).cbtabs({" . "useCookies: " . (int) $useCookies . "," . "tabSelected: '" . addslashes($tab) . "'" . "});"; $_CB_framework->outputCbJQuery($js, 'cbtabs'); $scriptOut = true; } }
public function __construct() { parent::__construct(); }
/** * Old-fashioned constructor (for UddeIM temporary compatibility: * @deprecated 2.0 Use parent::__construct(); */ public function cbPMSHandler() { parent::__construct(); }