2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
2008-01-09 05:18:36 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @package forms
|
|
|
|
* @subpackage fields-dataless
|
|
|
|
*/
|
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
/**
|
|
|
|
* It's a LiteralField ... with a Label
|
2008-01-09 05:18:36 +01:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fields-dataless
|
2007-07-19 12:40:28 +02:00
|
|
|
*/
|
|
|
|
class LabelledLiteralField extends LiteralField {
|
|
|
|
|
|
|
|
function __construct( $name, $title, $content ) {
|
|
|
|
parent::__construct( $name, $content );
|
2007-11-01 03:30:13 +01:00
|
|
|
$this->setTitle( $title );
|
2007-07-19 12:40:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function FieldHolder() {
|
|
|
|
return FormField::FieldHolder();
|
|
|
|
}
|
|
|
|
|
|
|
|
function Field() {
|
|
|
|
return is_object($this->content) ? $this->content->forTemplate() : $this->content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|