silverstripe-framework/forms/ReadonlyField.php

15 lines
248 B
PHP
Executable File

<?php
/**
* Read-only field, with <label> and <span>
* @package forms
* @subpackage fields-basic
*/
class ReadonlyField extends FormField {
protected $readonly = true;
function performReadonlyTransformation() {
return clone $this;
}
}
?>