class RouteType

Route types

Constants

INSTALL_PAGE_URL_PATH

UNKNOW_TYPE

HOME_PAGE_URL

ADMIN_PAGE_URL

SYSTEM_API_URL

API_URL

ADMIN_API_URL

Methods

static int
getType(string $url)

Get route type

static bool
isLanguageSegment(array $urlSegments)

Return true if last url segment is language

static bool
isSystemApiUrl(string $url)

Return true if request url is system api

static bool
isAdminPage(string $url)

Return true if request url is admin page

static bool
isApiInstallRequest()

Return true if request is for installation

static bool
isInstallPage()

Check for install page url

static string
getInstallPageUrl()

Get install page url

static bool
isValidApiRoutePattern(string $pattern)

Return true if api url pattern is valid

Details

at line 29
static int getType(string $url)

Get route type

Parameters

string $url

Return Value

int

at line 73
static bool isLanguageSegment(array $urlSegments)

Return true if last url segment is language

Parameters

array $urlSegments

Return Value

bool

at line 84
static bool isSystemApiUrl(string $url)

Return true if request url is system api

Parameters

string $url

Return Value

bool

at line 97
static bool isAdminPage(string $url)

Return true if request url is admin page

Parameters

string $url

Return Value

bool

at line 109
static bool isApiInstallRequest()

Return true if request is for installation

Return Value

bool

at line 121
static bool isInstallPage()

Check for install page url

Return Value

bool

at line 133
static string getInstallPageUrl()

Get install page url

Return Value

string

at line 144
static bool isValidApiRoutePattern(string $pattern)

Return true if api url pattern is valid

Parameters

string $pattern

Return Value

bool