|
PntTabsPart |
PntButtonPart |
PntButtonsPanel |
PntDetailsPart |
PntEditDetailsPart |
PntFilterFormPart |
PntHorizontalTablePart |
PntMenuPart |
PntMtoNFilterFormPart |
PntMtoNPropertyPart |
PntMultiPropsPart |
PntPagePart |
PntPropertyPart |
PntSortDialogPart |
PntTablePart |
|
__construct |
getContentPart |
getJsTabsArrayName |
getName |
getSelectedKey |
initialize |
printBody |
printContent |
printContentDivPart |
printContentDivTag |
printContentPart |
printScript |
printTabBar |
printTabDiv |
processPartArgumentsConvertTabsSpec |
setHandler_printContentDivTag |
setHandler_printContentPart |
setHandler_printTabDiv |
setJsSelectFunc |
setName |
setSelected |
setTabsSpec |
|
<?php
/* Copyright (c) MetaClass, 2003-2013
Distrubuted and licensed under under the terms of the GNU Affero General Public License
version 3, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License, http://www.gnu.org/licenses/agpl.txt */
Gen::includeClass('', 'pnt/web/parts');
/** PagePart that generates a tab bar and corrsponding content divs
* that are shown/hidden by clicking on a tab div in the tab bar.
* content is generated by printPart on the whole or on specified parts.
*
* This abstract superclass provides behavior for the concrete
* subclass TabsPart in the root classFolder or in the application classFolder.
* To keep de application developers code (including localization overrides)
* separated from the framework code override methods in the
* concrete subclass rather then modify them here.
* @see http://www.phppeanuts.org/site/index_php/Menu/178
* @see http://www.phppeanuts.org/site/index_php/Pagina/65
* @package pnt/web/parts
*/
class PntTabsPart extends {
/** Array with tab names. If a key is a string, it will be used as the tab label */
public $tabsSpec;
/** if set to false the contentparts should print their own divs with
* names according to the tabsSepc concatenated with 'Div' */
public $printDivs = true;
/** If set to true only the tabsbar is printen, no content parts */
public $tabsBarOnly = false;
/** name of selected tab as it appears in $tabSpec, can be set from print/getPart parameters */
public $selected;
/** name of the javascript func tion called when the a tab is selected.
* set this variable to name your own func tion and call pntTabSelected from there
* if you need to do something more on tab selection then hiding/showing tabs
* your func tion must take two parameters, the first an array with all tab keys
* the second the key of the selected tab, and pass them on to pntTabSelected
* @see scripts/general.js */
public $jsSelectFunc = 'pntTabSelected';
/** parts by tab name that generate content */
public $contentParts;
|
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/ .
|
|