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';
 }
Example #2
0
 function __construct($name, $title, $sourceObject = "Group", $keyField = "ID", $labelField = "Title")
 {
     parent::__construct($name, $title, $sourceObject, $keyField, $labelField);
     $this->value = 'unchanged';
 }
 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());
 }
 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");
 }
 /**
  * @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;
 }