MINOR: removed code to reference the editor from the form field

This commit is contained in:
Will Rossiter 2009-09-23 02:46:48 +00:00
parent e24cd75b21
commit fa21900504
2 changed files with 1 additions and 28 deletions

View File

@ -34,33 +34,9 @@ class EditableFormField extends DataObject {
static $extensions = array( static $extensions = array(
"Versioned('Stage', 'Live')" "Versioned('Stage', 'Live')"
); );
/**
* @var FieldEditor The current editor
*/
protected $editor;
protected $readonly; protected $readonly;
/**
* Construct a new EditableFormField Object.
*
* @param array|null $record This will be null for a new database record.
* @param boolean $isSingleton This this to true if this is a singleton() object, a stub for calling methods.
*/
public function __construct($record = null, $isSingleton = false) {
parent::__construct($record, $isSingleton);
}
/**
* Set the FieldEditor object for this field.
*
* @param FieldEditor The Editor window you wish to use
*/
public function setEditor($editor) {
$this->editor = $editor;
}
/** /**
* Set this formfield to readonly * Set this formfield to readonly
*/ */

View File

@ -65,13 +65,10 @@ class FieldEditor extends FormField {
$fields->push($field->performReadonlyTransformation()); $fields->push($field->performReadonlyTransformation());
} }
} }
$field->setEditor($this);
} }
} }
return $fields; return $fields;
} }
} }
/** /**