dljoseph\MaintenanceMode\PageControllerExtension
Synopsis
class PageControllerExtension
extends Extension
{
- // members
- private static array $allowed_ips = ;
- // methods
- public HTTPResponse onBeforeInit()
- public boolean hasAllowedIP()
- public string getClientIP()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $allowed_ips
—
array
Allowed IP addresses
Methods
public
- getClientIP() — Get the visitors IP based on the following
- hasAllowedIP() — Check if the visitors IP is in the array of allowed IP's
- onBeforeInit()