Bigfork\SilverStripeFailWhale\Model\ErrorDocument
Synopsis
class ErrorDocument
extends DataObject
{
- // members
- private static string $table_name = 'ErrorDocument';
- private static array $db = ;
- private static array $indexes = ;
- private static string $default_sort = 'ErrorCode ASC';
- private static array $summary_fields = ;
- private static bool $enable_static_file = true;
- private static $store_filepath = NULL;
- // methods
- public void canCreate()
- public void canView()
- public void canEdit()
- public void canDelete()
- public FieldList getCMSFields()
- public void fieldLabels()
- protected void onAfterWrite()
- protected void onAfterSkippedWrite()
- public void requireDefaultRecords()
- protected array getDefaultRecords()
- protected void requireDefaultRecordFixture()
- protected array getCodes()
- protected bool hasStaticContent()
- protected boolean writeStaticContent()
- public static HTTPResponse|null response_for()
- public DBHTMLText render()
- public static string|null get_content_for_errorcode()
- protected static string get_error_filename()
- protected string getErrorFilename()
- protected static GeneratedAssetHandler get_asset_handler()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $default_sort
- $enable_static_file
—
Bigfork\SilverStripeFailWhale\Model\bool
Whether error documents should be cached to a static file - $indexes
- $store_filepath
—
string
Prefix for storing error files in the {@see GeneratedAssetHandler} store. - $summary_fields
- $table_name
Methods
protected
- getCodes()
- getDefaultRecords()
- getErrorFilename() — Get filename identifier for this record.
- get_asset_handler()
- get_error_filename() — Gets the filename identifier for the given error code.
- hasStaticContent() — Determine if static content is cached for this document
- onAfterSkippedWrite()
- onAfterWrite()
- requireDefaultRecordFixture()
- writeStaticContent() — Write out the published version of the document to the filesystem
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- fieldLabels()
- getCMSFields()
- get_content_for_errorcode() — Returns statically cached content for a given error code
- render()
- requireDefaultRecords()
- response_for()