Property | Type | Description | |
---|---|---|---|
$cryptoKey | |||
$db | ADODB_mysqli | ||
$request | Scalr_UI_Request | ||
$response | Scalr_UI_Response | ||
$uiCacheKeyPattern | string | ||
$unusedPathChunks | |||
$user | Scalr_Account_User |
Property | Type | Description | |
---|---|---|---|
$_environment | |||
$environment | Scalr_Environment | ||
$sortParams |
Method | Description | |
---|---|---|
__construct ( ) | ||
addUiCacheKeyPatternChunk ( $chunk ) | ||
auditLog ( string $event, variadic |
AuditLogger wrapper | |
call ( $pathChunks = [], $permissionFlag = true ) | ||
callActionMethod ( $method ) | ||
controller ( boolean $checkPermissions = false ) : Scalr_UI_Controller | Create controller object from current class | |
getContainer ( ) : |
Gets DI Container | |
getEnvironment ( ) : Scalr_Environment | Gets current environment | |
getEnvironmentEntity ( ) : |
Get current environment as Entity | |
getEnvironmentId ( boolean $silent = false ) : integer | Returns identifier of the current Environment which is selected by the User. | |
getParam ( string $key, boolean $rawValue = false ) : mixed | ||
getUser ( ) : |
Gets the User Entity for the current request | |
handleRequest ( $pathChunks ) | ||
hasAccess ( ) : boolean | Restricts access to controller's actions | |
init ( ) | ||
loadController ( $controller, $prefix = 'Scalr_UI_Controller', $checkPermissions = false ) : Scalr_UI_Controller |
Method | Description | |
---|---|---|
buildResponseFromData ( array $data, array $filterFields = [], boolean $ignoreLimit = false ) : array | ||
buildResponseFromSql ( string $sql, array $filterFields = [], string $groupSQL = "", boolean | true $simpleQuery = true, boolean | false $noLimit = false ) : mixed | ||
buildResponseFromSql2 ( $sql, $sortFields = [], $filterFields = [], $args = [], $noLimit = false ) | ||
getCrypto ( ) : Scalr\Util\CryptoTool | ||
getSortOrder ( ) : array | Parse and validate input parameter sort (json-encoded array), and return as array [[property, direction], . | |
sort ( $item1, $item2 ) |
protected buildResponseFromData ( array $data, array $filterFields = [], boolean $ignoreLimit = false ) : array | ||
$data | array | |
$filterFields | array | New format: [field1 => query, ... ], old format: [field1, field2] For new format: - Conjuction: AND (all fields should be found) - Field could be list of fields ('field1,field2,field3'), in that case any of given fields should be found |
$ignoreLimit | boolean | If true return all results |
return | array |
protected buildResponseFromSql2 ( $sql, $sortFields = [], $filterFields = [], $args = [], $noLimit = false ) |
public static controller ( boolean $checkPermissions = false ) : Scalr_UI_Controller | ||
$checkPermissions | boolean | |
return | Scalr_UI_Controller |
public getContainer ( ) : |
||
return | Returns DI Container |
protected getCrypto ( ) : Scalr\Util\CryptoTool | ||
return | Scalr\Util\CryptoTool |
public getEnvironment ( ) : Scalr_Environment | ||
return | Scalr_Environment |
public getEnvironmentEntity ( ) : |
||
return | Current environment |
public getEnvironmentId ( boolean $silent = false ) : integer | ||
$silent | boolean | optional On false throw Exception |
return | integer | Returns identifier of the Environment |
protected getSortOrder ( ) : array | ||
return | array | Array of sort orders [[property => '', direction => '']] |
public static loadController ( $controller, $prefix = 'Scalr_UI_Controller', $checkPermissions = false ) : Scalr_UI_Controller | ||
return | Scalr_UI_Controller |
protected Environment,Scalr\Model\Entity\Account $_environment | ||
return |
protected Scalr_Environment $environment | ||
return | Scalr_Environment |