当前位置: 首页>>代码示例>>PHP>>正文


PHP TreeDropdownField::__construct方法代码示例

本文整理汇总了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';
 }
开发者ID:XDdesigners,项目名称:silverstripe-framework,代码行数:7,代码来源:TreeMultiselectField.php

示例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());
 }
开发者ID:helpfulrobot,项目名称:silverstripe-selectupload,代码行数:5,代码来源:FolderDropdownField.php

示例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");
 }
开发者ID:camfindlay,项目名称:silverstripe-userforms,代码行数:5,代码来源:UserformsTreeDropdownField.php

示例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;
 }
开发者ID:nyeholt,项目名称:silverstripe-external-content,代码行数:13,代码来源:ExternalTreeDropdownField.php


注:本文中的TreeDropdownField::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。