|
PntSelectWidget |
PntCheckboxWidget |
PntDialogWidget |
PntFormWidget |
PntHtmlWidget |
PntMtoNDialogWidget |
PntTextAreaWidget |
PntTextWidget |
PntWidgetFactory |
|
initialize |
__construct |
addOptionFromObject |
getAutoSelectFirst |
getName |
getOptionSelected |
getOptions |
getSelectedId |
getSettedCompulsory |
printBody |
printOnChangeScript |
printSelectOptions |
printStyle |
printUnselectOption |
setAutoSelectFirst |
setOnChangeScript |
setOptions |
setOptionsFromObjects |
setOptionsFromValues |
setSelectedId |
setSettedCompulsory |
setWidth |
setWidthFromOptionsMaxLength |
|
/** @throws PntError */
function ($text, $options=null) {
parent::initialize($text);
if ($text) {
$reqObj = isSet($text->item)
? $text->item
: $this->();
$nav = $text->();
$this->($nav->());
if ($text->contentLabel !== null) {
$text->($reqObj);
$text->($text->contentLabel); //id's from the request are converted
}
$settedProp = $nav->(); //not the idProp
if (isSet($text->contentLabel) || $nav->())
$this->($text->($reqObj));
if ($options===null)
$options = $nav->($reqObj);
if ($settedProp->()) {
$this->($options, $nav->(), $text->());
} else {
$this->($options, $nav->());
}
}
}
|
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/ .
|
|