/** * Create a new class for this field */ function performReadonlyTransformation() { $field = new CurrencyField_Readonly($this->name, $this->title, $this->value); $field->addExtraClass($this->extraClass()); return $field; /* $this is-a object and cant be passed as_a string of the first parameter of formfield constructor. return new CurrencyField_Readonly($this); */ }
/** * Create a new class for this field */ public function performReadonlyTransformation() { $field = new CurrencyField_Readonly($this->name, $this->title, $this->value); $field->addExtraClass($this->extraClass()); return $field; }