dljoseph\MaintenanceMode\UtilityPage
Utility Page which can be used as a Down for Maintenance, Under Construction or Coming Soon Page
- Author: Darren-Lee Joseph <darrenleejoseph@gmail.com>
Synopsis
class UtilityPage
extends ErrorPage
{
- // members
- private static string $singular_name = 'Utility Page';
- private static string $plural_name = 'Utility Pages';
- private static string $description = 'Use this to create a Down for Maintenance, Under Construction or Coming Soon Page';
- private static string $icon = 'dljoseph/MaintenanceMode:client/images/tools-icon.png';
- private static string $table_name = 'UtilityPage';
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $defaults = ;
- // methods
- public boolean canCreate()
- public void requireDefaultRecords()
- public mixed getCMSFields()
- public static array get_top_level_templates()
Hierarchy
Extends
- SilverStripe\ErrorPage\ErrorPage
Members
private
- $db
- $defaults
- $description
- $has_many
- $has_one
- $icon
- $plural_name
- $singular_name
- $table_name
Methods
public
- canCreate()
- getCMSFields()
- get_top_level_templates() — This function returns an array of top-level theme templates
- requireDefaultRecords() — Create default Utility Page setup Ensures that there is always a 503 Utility page by checking if there's an instance of ErrorPage with a 503 error code. If there is not, one is created when the DB is built.