classname: htmlobject_tabmenu
extends: htmlobject_div
Tabmenu
@package htmlobjects
@author Alexander Kuballa [akuballa@users.sourceforge.net]
@copyright Copyright (c) 2008 - 2012, Alexander Kuballa
@license BSD License (see LICENSE.TXT)
@version 1.1
filename: htmlobject.tabmenu.class.php
Attributes
Attributes
topattribute: form_action
access: public
default:
topaccess: public
default:
empty
url to process request Form disabled if empty @access public @var string
attribute: tabcss
access: public
default:
topaccess: public
default:
current
Css class to highlight active tab @access public @var string
attribute: auto_tab
access: public
default:
topaccess: public
default:
true
Add a param to handle active tab If set to true ['active'] will be ignored @access public @var bool
attribute: custom_tab
access: public
default:
topaccess: public
default:
empty
Add a custom string to tabs @access public @var string
attribute: floatbreaker
access: public
default:
topaccess: public
default:
true
Add a floatbreaking div between tab and box @access public @var string
attribute: message_param
access: public
default:
topaccess: public
default:
strMsg
Name of param to transport message to messagebox @access public @var string
attribute: message_filter
access: public
default:
topaccess: public
default:
array ( array ( 'pattern' => '~</?script.+~i', 'replace' => ''), array ( 'pattern' => '~</?iframe.+~i', 'replace' => ''), array ( 'pattern' => '~</?object.+~i', 'replace' => ''), array ( 'pattern' => '~on.+=~i', 'replace' => ''), array ( 'pattern' => '~javascript~i', 'replace' => ''), array ( 'pattern' => '~://~', 'replace' => ':&frasl
Regex pattern for messagebox (XSS) replace pattern with replace @access public @var array(array('pattern'=>'','replace'=>''));
attribute: message_time
access: public
default:
topaccess: public
default:
10000
Time to show messagebox in milliseconds (1/1000 sec.) @access public @var int
attribute: message_css
access: public
default:
access: public
default:
msgBox
Css class for messagebox @access public @var string
Methods
topfunction: __construct
params:
topparams:
$htmlobject $id = 'currenttab'
Constructor @access public @param htmlobject $htmlobject @param string $id
function: init
topInit tabs @access public
function: add
params:
topparams:
$data $key = null
Add content
@access public
@param array $data
@param null $key not in use
$html = new htmlobject('path_to_htmlobjects');
$tab = $html->tabmenu('id');
$content = array();
$content[0]['label'] = 'some title';
$content[0]['value'] = 'some content text';
$content[0]['target'] = 'somefile.php';
$content[0]['request'] = array('param1'=>'value1');
$content[0]['onclick'] = false;
$content[0]['active'] = false;
$content[0]['hidden'] = false;
$tab->add($content);
function: get_string
topGet tabs as string @access public @param array $arr @return string
function: get_current
topGet array key of current element @access public @return string | null
function: __get_tabs
params:
topparams:
$currenttab
Create tabs @access private @param string $currenttab @return string
function: __get_js
topCreate JS toggle function @access private @return string
function: __get_messagebox
Create messagebox @access private @return string
- htmlobject
- htmlobject_a
- htmlobject_base
- htmlobject_box
- htmlobject_button
- htmlobject_div
- htmlobject_form
- htmlobject_formbuilder
- htmlobject_iframe
- htmlobject_img
- htmlobject_input
- htmlobject_option
- htmlobject_request
- htmlobject_response
- htmlobject_select
- htmlobject_table
- htmlobject_tablebuilder
- htmlobject_tabmenu
- htmlobject_td
- htmlobject_template
- htmlobject_textarea
- htmlobject_tr