コード例 #1
0
 /**
  * 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);
     */
 }
コード例 #2
0
ファイル: CurrencyField.php プロジェクト: normann/sapphire
 /**
  * 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;
 }