|
PntTabsPart |
PntButtonPart |
PntButtonsPanel |
PntDetailsPart |
PntEditDetailsPart |
PntFilterFormPart |
PntHorizontalTablePart |
PntMenuPart |
PntMtoNFilterFormPart |
PntMtoNPropertyPart |
PntMultiPropsPart |
PntPagePart |
PntPropertyPart |
PntSortDialogPart |
PntTablePart |
|
setTabsSpec |
__construct |
getContentPart |
getJsTabsArrayName |
getName |
getSelectedKey |
initialize |
printBody |
printContent |
printContentDivPart |
printContentDivTag |
printContentPart |
printScript |
printTabBar |
printTabDiv |
processPartArgumentsConvertTabsSpec |
setHandler_printContentDivTag |
setHandler_printContentPart |
setHandler_printTabDiv |
setJsSelectFunc |
setName |
setSelected |
|
/** Sets the Array with tab names (must be alphanumeric). If a key is a string,
* it will be used als the tab label (must be HTML)
* If the value is an array, it should start with the tab name at index 0,
* followed by the getPart parameters. The array will be replaced by the tab name
*/
function ($tabsSpec) {
$this->tabsSpec = is_string($tabsSpec)
? explode(',', $tabsSpec)
: $tabsSpec;
$this->contentParts = array();
$this->();
//make sure selection is valid
if (!in_array($this->selected, $this->tabsSpec))
$this->selected = current($this->tabsSpec);
}
|
Copyright (c) MetaClass, 2003-
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
Click here for a copy of the license or see http://www.gnu.org/licenses/ .
|
|