mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removing deprecated FormField functions
setTabIndex() -> setAttribute('tabindex') getTabIndex() -> getAttribute('tabindex') describe() -> setDescription()
This commit is contained in:
parent
0d659a5e5a
commit
b3b071a05a
@ -246,30 +246,6 @@ class FormField extends RequestHandler {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set tabindex HTML attribute
|
||||
* (defaults to none).
|
||||
*
|
||||
* @deprecated 3.0 Use setAttribute("tabindex") instead
|
||||
* @param int $index
|
||||
*/
|
||||
public function setTabIndex($index) {
|
||||
Deprecation::notice('3.0', 'Use setAttribute("tabindex") instead');
|
||||
$this->setAttribute($index);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tabindex (if previously set)
|
||||
*
|
||||
* @deprecated 3.0 Use getAttribute("tabindex") instead
|
||||
* @return int
|
||||
*/
|
||||
public function getTabIndex() {
|
||||
Deprecation::notice('3.0', 'Use getAttribute("tabindex") instead');
|
||||
return $this->getAttribute('tabindex');
|
||||
}
|
||||
|
||||
/**
|
||||
* Compiles all CSS-classes. Optionally includes a "nolabel"-class
|
||||
* if no title was set on the formfield.
|
||||
@ -797,15 +773,6 @@ class FormField extends RequestHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use setDescription()
|
||||
*/
|
||||
public function describe($description) {
|
||||
Deprecation::notice('3.0', 'Use setDescription()');
|
||||
$this->setDescription($description);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Describe this field, provide help text for it.
|
||||
* By default, renders as a "title" attribute on the form field.
|
||||
|
Loading…
Reference in New Issue
Block a user