2008-09-29 05:18:23 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Allows an editor to insert a generic heading into a field
|
2009-04-17 04:26:40 +02:00
|
|
|
*
|
|
|
|
* @subpackage userforms
|
2008-09-29 05:18:23 +02:00
|
|
|
*/
|
|
|
|
class EditableFormHeading extends EditableFormField {
|
2009-04-17 04:26:40 +02:00
|
|
|
|
2008-09-29 05:18:23 +02:00
|
|
|
static $singular_name = 'Form heading';
|
2009-04-17 04:26:40 +02:00
|
|
|
|
2008-09-29 05:18:23 +02:00
|
|
|
static $plural_name = 'Form headings';
|
|
|
|
|
|
|
|
function getFormField() {
|
2008-11-01 16:32:36 +01:00
|
|
|
$labelField = new LabelField('FormHeadingLabel',$this->Title);
|
|
|
|
$labelField->addExtraClass('FormHeading');
|
|
|
|
return $labelField;
|
2008-09-29 05:18:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function showInReports() {
|
|
|
|
return false;
|
|
|
|
}
|
2009-04-17 04:26:40 +02:00
|
|
|
|
|
|
|
function showExtraOptions() {
|
|
|
|
return false;
|
|
|
|
}
|
2008-09-29 05:18:23 +02:00
|
|
|
}
|
|
|
|
?>
|