프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cryptoKey | |||
$db | ADODB_mysqli | ||
$request | Scalr_UI_Request | ||
$response | Scalr_UI_Response | ||
$uiCacheKeyPattern | string | ||
$unusedPathChunks | |||
$user | Scalr_Account_User |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_environment | |||
$environment | Scalr_Environment | ||
$sortParams |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | array |
protected buildResponseFromSql2 ( $sql, $sortFields = [], $filterFields = [], $args = [], $noLimit = false ) |
public static controller ( boolean $checkPermissions = false ) : Scalr_UI_Controller | ||
$checkPermissions | boolean | |
리턴 | Scalr_UI_Controller |
public getContainer ( ) : |
||
리턴 | Returns DI Container |
public getEnvironment ( ) : Scalr_Environment | ||
리턴 | Scalr_Environment |
public getEnvironmentEntity ( ) : |
||
리턴 | Current environment |
public getEnvironmentId ( boolean $silent = false ) : integer | ||
$silent | boolean | optional On false throw Exception |
리턴 | integer | Returns identifier of the Environment |
protected getSortOrder ( ) : array | ||
리턴 | array | Array of sort orders [[property => '', direction => '']] |
public static loadController ( $controller, $prefix = 'Scalr_UI_Controller', $checkPermissions = false ) : Scalr_UI_Controller | ||
리턴 | Scalr_UI_Controller |
protected Environment,Scalr\Model\Entity\Account $_environment | ||
리턴 |