com\setasign\Konquadrat\Controller\Backend
Admin Class Admin
File: /Konquadrat/src/Controller/Backend/Admin.php
Class hierarchy
- com\setasign\SetaFramework\Controller\AbstractJsonController
Implements
- \com\setasign\SetaFramework\Controller\ControllerInterface
Summary
Methods
- __construct()
- checkReloadIsOngoingAction()
- cleanupAction()
- cleanupDbStructureAction()
- cleanupFilesAction()
- cleanupOldObjectsAction()
- fixConfigReloadFlagAction()
- getParam()
- getParams()
- getResponse()
- getShowDeletedFlagAction()
- importAction()
- installAction()
- renderView()
- repairChildPaths()
- repairPathsAction()
- resetResponse()
- setIdAction()
- setParam()
- setParams()
- setShowDeletedFlagAction()
- updateAction()
Constants
PERMISSION_ACTION_CLEANUP
PERMISSION_ACTION_HISTORY_READ
PERMISSION_ACTION_SHOW_DELETED
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
-
$messageList
$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()
\com\setasign\SetaFramework\Http\HttpFactoryInterface $httpFactory
Parameters
- $messageList : \com\setasign\Konquadrat\Object\MessageList
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
checkReloadIsOngoingAction()
Parameters
- $persistentDatabase : \com\setasign\SetaFramework\Registry\PersistantDatabase
Exceptions
Throws \Throwable
cleanupAction()
\com\setasign\Konquadrat\SessionContext $sessionContext
Deletes all as deleted marked objects with their history.
Additionally, all files in the kon2/data directory which aren't used by an object will be deleted and all objects with not existing files will be cleared.
Parameters
- $objectCleaner : \com\setasign\Konquadrat\Cleanup\ObjectCleaner
- $sessionContext : \com\setasign\Konquadrat\SessionContext
Exceptions
Throws \com\setasign\SetaFramework\Permissions\PermissionException
cleanupDbStructureAction()
cleanupFilesAction()
Parameters
- $filesCleaner : \com\setasign\Konquadrat\Cleanup\FilesCleaner
Exceptions
Throws \Throwable
cleanupOldObjectsAction()
Parameters
- $objectCleaner : \com\setasign\Konquadrat\Cleanup\ObjectCleaner
Exceptions
Throws \Exception
fixConfigReloadFlagAction()
\com\setasign\SetaFramework\Registry\PersistantDatabase $persistentDatabase
Parameters
- $applicationConfig : \com\setasign\SetaFramework\Application\ApplicationConfig
- $persistentDatabase : \com\setasign\SetaFramework\Registry\PersistantDatabase
Exceptions
Throws \Throwable
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
getResponse()
-
getShowDeletedFlagAction()
Parameters
- $objectFinder : \com\setasign\Konquadrat\Object\ObjectFinder
importAction()
\com\setasign\Konquadrat\Object\ObjectFinder $objectFinder,
\com\setasign\Konquadrat\Object\History $history,
\com\setasign\Konquadrat\SessionContext $sessionContext
Parameters
- $konquadrat : \com\setasign\Konquadrat\Konquadrat
- $objectFinder : \com\setasign\Konquadrat\Object\ObjectFinder
- $history : \com\setasign\Konquadrat\Object\History
- $sessionContext : \com\setasign\Konquadrat\SessionContext
Exceptions
Throws \Throwable
installAction()
\com\setasign\Konquadrat\Config\ConfigReloader $configReloader
Parameters
- $db : \com\setasign\SetaFramework\Database\Database
- $configReloader : \com\setasign\Konquadrat\Config\ConfigReloader
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws \Throwable
renderView()
-
Exceptions
Throws \JsonException
repairChildPaths()
array $ids,
array $parentPaths
Parameters
- $db : \com\setasign\SetaFramework\Database\Database
- $ids : array
- $parentPaths : array
resetResponse()
-
setIdAction()
\com\setasign\SetaFramework\Database\Database $db,
\com\setasign\Konquadrat\Object\ObjectFinder $objectFinder,
\com\setasign\Konquadrat\Object\TransactionManager $transactionManager,
\com\setasign\Konquadrat\Object\ObjectTableManager $objectTableManager
Parameters
- $request : \com\setasign\SetaFramework\Request\ServerRequest
- $db : \com\setasign\SetaFramework\Database\Database
- $objectFinder : \com\setasign\Konquadrat\Object\ObjectFinder
- $transactionManager : \com\setasign\Konquadrat\Object\TransactionManager
- $objectTableManager : \com\setasign\Konquadrat\Object\ObjectTableManager
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws \com\setasign\Konquadrat\Object\UnknownObjectException
Throws \Exception
Throws \Throwable
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
setShowDeletedFlagAction()
\com\setasign\Konquadrat\SessionContext $sessionContext
Parameters
- $objectFinder : \com\setasign\Konquadrat\Object\ObjectFinder
- $sessionContext : \com\setasign\Konquadrat\SessionContext
Exceptions
Throws \com\setasign\SetaFramework\Permissions\PermissionException
updateAction()
\com\setasign\SetaFramework\Di\Di $di
Parameters
- $configReloader : \com\setasign\Konquadrat\Config\ConfigReloader
- $di : \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \Throwable
