BluehouseGroup\SingleRecord\SingleRecordDataObject
SingleRecordDataObject
Synopsis
class SingleRecordDataObject
extends DataExtension
{
- // members
- public boolean $single_record = false;
- // methods
- public FieldList updateCMSActions()
- public static SingleRecordDataObject current_single_record_data_object()
- public static SingleRecordDataObject make_single_record_data_object()
- public static void get_template_global_variables()
- public void current_single_record()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
public
- $single_record
Methods
public
- current_single_record()
- current_single_record_data_object() — Get the current sites SingleRecordDataObject, and creates a new one through {@link make_single_record_data_object()} if none is found.
- get_template_global_variables() — Add $SingleRecordDataObject to all SSViewers
- make_single_record_data_object() — Create SingleRecordDataObject with defaults from language file.
- updateCMSActions() — Get the actions that are sent to the CMS.