com\setasign\SetaSite
SetaSite Class AbstractHttp
File: /SetaSite/src/SetaSite.php
Class hierarchy
Implements
- \com\setasign\SetaFramework\Application\ApplicationInterface
- \com\setasign\SetaFramework\Application\HttpApplicationInterface
Summary
Constants
APPLICATION_NAME
ROUTE_BACKEND
ROUTE_BACKEND_DEFAULT
ROUTE_BACKEND_LOGGED_IN
ROUTE_BACKEND_USER_WITHOUT_LOGIN
ROUTE_DEFAULT_PAGE
ROUTE_GUI
ROUTE_GUI_JS
ROUTE_GUI_JS_LOGGER
ROUTE_GUI_STARTPAGE
ROUTE_INSTALLER
ROUTE_RESOURCE
VERSION
Properties
$name
protected string \com\setasign\SetaFramework\Application\AbstractApplication::$name
The name of the application
Static Methods
Methods
__construct()
public SetaSite::__construct (
\com\setasign\SetaFramework\Bootstrap\Bootstrap $bootstrap,
string $name,
\com\setasign\SetaFramework\Application\ApplicationConfig $config
)string $name,
\com\setasign\SetaFramework\Application\ApplicationConfig $config
SetaSite constructor.
Parameters
- $bootstrap: \com\setasign\SetaFramework\Bootstrap\Bootstrap
- $name: string
- $config: \com\setasign\SetaFramework\Application\ApplicationConfig
getPageLanguage()
WARNING: This method is marked as deprecated!
Use PageSettings instead
Returns the page language. Only available in backend and over the Frontend-PageController.
getPageLanguages()
WARNING: This method is marked as deprecated!
Use PageSettings instead
Returns all registered page languages.
getRequestPathPrefix()
final public \com\setasign\SetaFramework\Application\AbstractHttpApplication::getRequestPathPrefix (
void
): ?stringReturn Values
If used in cli this will be null.
getViewDirectory()
public \com\setasign\SetaFramework\Application\AbstractHttpApplication::getViewDirectory (
void
): stringReturns the view directory
registerRequest()
final public \com\setasign\SetaFramework\Application\AbstractHttpApplication::registerRequest (
\com\setasign\SetaFramework\Request\ServerRequest $serverRequest
): voidParameters
- $serverRequest: \com\setasign\SetaFramework\Request\ServerRequest
setPageLanguage()
WARNING: This method is marked as deprecated!
Use PageSettings instead
Sets the page language.
Parameters
- $language: string
setupRoutes()
Setup Routes for the Application
Parameters
- $router: \com\setasign\SetaFramework\Router\Router
The main Router-instance
Exceptions
Throws \com\setasign\SetaFramework\Router\RouteException
Throws \Throwable
