Quick search:

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 initialize($text, $options=null) {
		parent::initialize($text);
		if ($text) {
			$reqObj = isSet($text->item)
				?  $text->item
				: $this->getRequestedObject();

			$nav = $text->getNavigation();
			$this->setSettedCompulsory($nav->isSettedCompulsory());
			if ($text->contentLabel !== null) {
				$text->setItem($reqObj);
				$text->setConvertMarkup($text->contentLabel); //id's from the request are converted
			}
			$settedProp = $nav->getSettedProp(); //not the idProp
			if (isSet($text->contentLabel) || $nav->isSingleValue())
				$this->setSelectedId($text->getContentLabelWith($reqObj));
			if ($options===null)
				$options = $nav->getOptions($reqObj);
			if ($settedProp->isTypePrimitive()) {
				$this->setOptionsFromValues($options, $nav->getResultType(), $text->getConverter());
			} else {
				$this->setOptionsFromObjects($options, $nav->getResultType());
			}
		}
	}
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/ .