Skip to content

Commit

Permalink
Removed deprecated arguments of row, cols to TextareaField
Browse files Browse the repository at this point in the history
Use setColumns() and setRows() instead
  • Loading branch information
Sean Harvey committed Nov 15, 2012
1 parent 4d11080 commit 4c803a2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions forms/TextareaField.php
Expand Up @@ -32,21 +32,6 @@ class TextareaField extends FormField {
*/
protected $cols = 20;

/**
* Create a new textarea field.
*
* @param $name Field name
* @param $title Field title
* @param $value The current value
*/
public function __construct($name, $title = null, $value = '') {
if(count(func_get_args()) > 3) {
Deprecation::notice('3.0', 'Use setRows() and setColumns() instead of constructor arguments');
}

parent::__construct($name, $title, $value);
}

public function getAttributes() {
return array_merge(
parent::getAttributes(),
Expand Down

0 comments on commit 4c803a2

Please sign in to comment.