本文整理匯總了PHP中TreeDropdownField::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP TreeDropdownField::__construct方法的具體用法?PHP TreeDropdownField::__construct怎麽用?PHP TreeDropdownField::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TreeDropdownField
的用法示例。
在下文中一共展示了TreeDropdownField::__construct方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($name, $title = null, $sourceObject = "Group", $keyField = "ID", $labelField = "Title")
{
parent::__construct($name, $title, $sourceObject, $keyField, $labelField);
$this->removeExtraClass('single');
$this->addExtraClass('multiple');
$this->value = 'unchanged';
}
示例2: __construct
public function __construct($name, $title = null, $sourceObject = 'Folder', $keyField = 'ID', $labelField = 'TreeTitle', $showSearch = true)
{
parent::__construct($name, $title, $sourceObject, $keyField, $labelField, $showSearch);
$this->setValue(self::get_last_folder());
}
示例3: __construct
public function __construct($name, $title = null, $sourceObject = 'Group', $keyField = 'ID', $labelField = 'TreeTitle', $showSearch = true)
{
parent::__construct($name, $title, $sourceObject, $keyField, $labelField, $showSearch);
Deprecation::notice('4.0', __CLASS__ . " is deprecated");
}
示例4: __construct
/**
* @param string $name the field name
* @param string $title the field label
* @param string $souceClass the class to display in the tree, must have the "Hierachy" extension.
* @param string $keyField to field on the source class to save as the field value (default ID).
* @param string $labelField the field name to show as the human-readable value on the tree (default Title).
* @param boolean $showChildren whether children should be selectable
*/
public function __construct($name, $title = null, $sourceObject = 'Group', $keyField = 'ID', $labelField = 'Title', $showChildren = true)
{
parent::__construct($name, $title, $sourceObject, $keyField, $labelField);
$this->showChildren = $showChildren;
}