本文整理汇总了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;
}