com\setasign\SetaSite\Controller\Backend
Application Class Application
File: /SetaSite/src/Controller/Backend/Application.php
Class hierarchy
- com\setasign\SetaFramework\Controller\AbstractJsonController
Implements
- \com\setasign\SetaFramework\Controller\ControllerInterface
Summary
Properties
$data
-
Result data to convert to JSON.
$encodingOptions
-
Default JSON encoding is performed with the following options, which produces RFC4627-compliant JSON, capable of embedding into HTML.
default value of:
JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_UNESCAPED_SLASHES
$httpFactory
-
$response
-
$textContentType
-
If true the response contentType will be 'text/html; charset=utf-8' instead of 'application/json'.
Needed for the IE. The IE will try to download 'application/json' responses from iframes.
Methods
__construct()
-
Parameters
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
checkData()
?\com\setasign\SetaFramework\Database\Migration\MigrationGenerator $migrationGenerator,
\com\setasign\SetaSite\Config\UserTableNames $userTableNames,
\com\setasign\SetaSite\Config\PageTableNames $pageTableNames
Parameters
- $db : \com\setasign\SetaFramework\Database\Database
- $migrationGenerator : ?\com\setasign\SetaFramework\Database\Migration\MigrationGenerator
- $userTableNames : \com\setasign\SetaSite\Config\UserTableNames
- $pageTableNames : \com\setasign\SetaSite\Config\PageTableNames
clearCacheAction()
Parameters
- $bootstrap : \com\setasign\SetaFramework\Bootstrap\Bootstrap
getParam()
-
mixed $default = null
Returns a param if it exists otherwise this will return $default
Parameters
- $name : string
- $default : mixed
getParams()
-
Get all existing params
getRegisteredBlocksAction()
\com\setasign\SetaSite\Block\BlockFactory $blockFactory,
\com\setasign\SetaSite\SessionContext $sessionContext,
\com\setasign\SetaSite\Module\ModuleManager $moduleManager
Parameters
- $setaSite : \com\setasign\SetaSite\SetaSite
- $blockFactory : \com\setasign\SetaSite\Block\BlockFactory
- $sessionContext : \com\setasign\SetaSite\SessionContext
- $moduleManager : \com\setasign\SetaSite\Module\ModuleManager
Exceptions
getResponse()
-
installAction()
\com\setasign\SetaFramework\Database\Database $db,
\com\setasign\SetaSite\Module\ModuleManager $moduleManager,
\com\setasign\SetaSite\Config\PageTableNames $pageTableNames,
\com\setasign\SetaSite\Config\UserTableNames $userTableNames,
\com\setasign\SetaFramework\Controller\ControllerDispatcher $controllerDispatcher
Parameters
- $config : \com\setasign\SetaFramework\Application\ApplicationConfig
- $db : \com\setasign\SetaFramework\Database\Database
- $moduleManager : \com\setasign\SetaSite\Module\ModuleManager
- $pageTableNames : \com\setasign\SetaSite\Config\PageTableNames
- $userTableNames : \com\setasign\SetaSite\Config\UserTableNames
- $controllerDispatcher : \com\setasign\SetaFramework\Controller\ControllerDispatcher
Exceptions
Throws \com\setasign\SetaSite\Exception
Throws \com\setasign\SetaFramework\Database\Manager\TableSchemaBuilderException
Throws \com\setasign\SetaFramework\Controller\InitControllerException
renderView()
-
Exceptions
Throws \JsonException
resetResponse()
-
setParam()
-
mixed $value
Sets a param
Parameters
- $name : string
- $value : mixed
setParams()
-
Set a array of params
Note: The params will be merged with the existing params!!
Parameters
- $params : array
setupDefaultData()
?\com\setasign\SetaFramework\Database\Migration\MigrationGenerator $migrationGenerator,
\com\setasign\SetaFramework\Application\ApplicationConfig $applicationConfig
Parameters
- $db : \com\setasign\SetaFramework\Database\Database
- $migrationGenerator : ?\com\setasign\SetaFramework\Database\Migration\MigrationGenerator
- $applicationConfig : \com\setasign\SetaFramework\Application\ApplicationConfig
updateTo20()
\com\setasign\SetaFramework\Database\Database $db,
\com\setasign\SetaFramework\Database\Manager\AbstractManager $dbManager,
array $languages,
string $pageChangeTableName,
string $pageLockTableName,
?\com\setasign\SetaFramework\Database\Migration\MigrationGenerator $migrationGenerator
Parameters
- $pageTableNames : \com\setasign\SetaSite\Config\PageTableNames
- $db : \com\setasign\SetaFramework\Database\Database
- $dbManager : \com\setasign\SetaFramework\Database\Manager\AbstractManager
- $languages : array
- $pageChangeTableName : string
- $pageLockTableName : string
- $migrationGenerator : ?\com\setasign\SetaFramework\Database\Migration\MigrationGenerator
