|
PntPage |
PntErrorPage |
PntHorSelReportPage |
PntIndexPage |
PntObjectDetailsPage |
PntObjectEditDetailsPage |
PntObjectIndexPage |
PntObjectMtoNPropertyPage |
PntObjectMtoNSearchPage |
PntObjectPropertyPage |
PntObjectReportPage |
PntObjectSearchPage |
PntObjectSelectionDetailsReportPage |
PntObjectSelectionReportPage |
PntObjectVerifyDeletePage |
|
addContextButtonTo |
addMultiValuePropertyButtons |
ajaxHandleRequest |
ajaxPrintHeaders |
ajaxPrintPartAttributes |
ajaxPrintPartUpdate |
ajaxPrintUpdates |
ajaxShouldUpdate |
checkAccess |
doScouting |
getAjaxLoadingMessage |
getAjaxUpdatePartIds |
getAjaxUpdateSubPartIds |
getAndCreateNextActionTicket |
getButton |
getButtonsList |
getCharset |
getConvert |
getDetailsHref |
getDetailsLinkPntHandler |
getExcludedMultiValuePropButtonKeys |
getFilterPartString |
getFootprintId |
getImagesDir |
getInfoStyle |
getInfoStyleError |
getInfoStyleOk |
getInfoStyleWarning |
getInitConverter |
getLinkDirFromNav |
getMultiValuePropertyButtonScript |
getNoItemsMessage |
getPart |
getPartId |
getPartIncludeTryParams |
getPropertyName |
getRequestDuration |
getSpecificPartPrefix |
getTargetAppName |
getThisPntContext |
handleRequest |
imp_printPart |
includeSkin |
initForHandleRequest |
isLayoutReport |
isRequestAjax |
printBody |
printBodyTagIeExtraPiece |
printExtraHeaders |
printFooter |
printFootprintJsLiteral |
printHeader |
printHeaderXframeOptions |
printHeaders |
printInformationPart |
printMainPart |
printNextActionTicket |
printPart |
printPartDebugComment |
printSetTitle |
setInfoStyle |
|
/** Add a button for each multi value property except those in whose names
* are in ::getExcludedMultiValuePropButtonKeys.
* Each button will hold a javascript from ::getMultiValuePropertyButtonScript,
* whose default implementation is to retrieve an (MtoN)PropertyPage for the property.
* @param array $buttons to add the butons to.
*/
function (&$buttons) {
$excludedPropKeys = $this->();
$obj = $this->();
$ghost = !$obj || !$obj->('id');
$sm = $this->controller->();
$formTexts = $this->();
$clsDes = PntClassDescriptor::getInstance($this->());
$multiProps = $clsDes->();
forEach(array_keys($multiProps) as $key)
if (!isSet($excludedPropKeys[$key]) && $multiProps[$key]->() ) {
$edit = isSet($formTexts[$key]);
if ($edit) $edit = !$sm->($obj, $multiProps[$key]);
if (!$sm->($obj, $multiProps[$key]))
$buttons[]=$this->(
ucfirst($multiProps[$key]->()),
$this->($key, $edit),
$ghost
);
}
}
|
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/ .
|
|