RouteType
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
at line 73
static bool
isLanguageSegment(array $urlSegments)
Return true if last url segment is language
at line 84
static bool
isSystemApiUrl(string $url)
Return true if request url is system api
at line 97
static bool
isAdminPage(string $url)
Return true if request url is admin page
at line 109
static bool
isApiInstallRequest()
Return true if request is for installation
at line 121
static bool
isInstallPage()
Check for install page url
at line 133
static string
getInstallPageUrl()
Get install page url
at line 144
static bool
isValidApiRoutePattern(string $pattern)
Return true if api url pattern is valid