2007-07-19 10:40:28 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2009-03-10 15:03:34 +00:00
|
|
|
* Read-only field to display a non-editable value with a label.
|
|
|
|
* Consider using an {@link LabelField} if you just need a label-less
|
|
|
|
* value display.
|
|
|
|
*
|
2008-01-09 04:18:36 +00:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fields-basic
|
2007-07-19 10:40:28 +00:00
|
|
|
*/
|
|
|
|
class ReadonlyField extends FormField {
|
|
|
|
|
2008-08-12 02:58:48 +00:00
|
|
|
protected $readonly = true;
|
|
|
|
|
2007-07-19 10:40:28 +00:00
|
|
|
function performReadonlyTransformation() {
|
2008-12-04 22:38:32 +00:00
|
|
|
return clone $this;
|
2007-07-19 10:40:28 +00:00
|
|
|
}
|
2011-03-23 17:12:25 +13:00
|
|
|
}
|