當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。