프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$app | Application instance |
메소드 | 설명 | |
---|---|---|
__call ( $method, $args ) | ||
adapter ( string $name, string $scope = null, string $version = null ) : |
Gets a new Instance of the adapter | |
auditLog ( string $event, variadic |
AuditLogger wrapper | |
checkPermissions ( $args ) | Checks whether the authenticated user either is authorized to the specified object or has permission to ACL Role | |
checkScopedPermissions ( string $resourceMnemonic, string $permissionMnemonic = null ) | Checks whether the authenticated user either is authorized has permission to ACL Role | |
getApplication ( ) : |
Gets Application | |
getBareId ( object $object, string $item = null ) : mixed | Gets bare id from request object | |
getCommonQueryParams ( ) : array | Gets common query parameters | |
getEnvironment ( ) : |
Gets Environment from the current request | |
getMaxResults ( ) : integer | Gets the maximum records per page | |
getPageNum ( ) : integer | Gets the number of the page | |
getPageOffset ( ) : integer | Gets the page offset | |
getPagination ( integer $foundRows ) : Scalr\Api\DataType\Pagination | Gets pagination object | |
getScope ( ) : string | Gets current API request scope | |
getScopeCriteria ( string $scope = null, $strictToScope = false ) : array | Gets criteria corresponding current API request scope | |
getUser ( ) : |
Gets authenticated user | |
hasPermissions ( ) : boolean | Checks whether the authenticated user either is authorized to the specified object or has permission to ACL Role | |
params ( string $name = null, string $default = null ) : string | array | Gets GET request parameter | |
result ( mixed $data ) : Scalr\Api\DataType\ResultEnvelope | Gets result envelope for the response | |
resultList ( mixed $data, string | null $foundRows = null ) : Scalr\Api\DataType\ListResultEnvelope | Gets the list result envelope for the response | |
setApplication ( |
Sets API Application instance |
메소드 | 설명 | |
---|---|---|
generateLink ( array &$params, boolean $sort = false ) : string | Generates link using specified query params | |
processCommonQueryParameters ( ) | Processes and validates common query parameters from the request |
public adapter ( string $name, string $scope = null, string $version = null ) : |
||
$name | string | The name of the adapter |
$scope | string | optional The scope of the adapter |
$version | string | optional The version of the adapter |
리턴 | Returns the instance of the specified adapter |
public checkPermissions ( $args ) |
public checkScopedPermissions ( string $resourceMnemonic, string $permissionMnemonic = null ) | ||
$resourceMnemonic | string | ACL resource name |
$permissionMnemonic | string | optional ACL permission name |
public getApplication ( ) : |
||
리턴 |
public getCommonQueryParams ( ) : array | ||
리턴 | array | Returns array of common query parameters looks like [name => value] |
public getEnvironment ( ) : |
||
리턴 |
public getMaxResults ( ) : integer | ||
리턴 | integer | Returns maximum records per page |
public getPageNum ( ) : integer | ||
리턴 | integer | Returns the number of the page |
public getPageOffset ( ) : integer | ||
리턴 | integer | Returns page offset |
public getPagination ( integer $foundRows ) : Scalr\Api\DataType\Pagination | ||
$foundRows | integer | The number of records found |
리턴 | Scalr\Api\DataType\Pagination | Returns pagination object |
public getScopeCriteria ( string $scope = null, $strictToScope = false ) : array | ||
$scope | string | optional Scope override |
리턴 | array | Returns criteria |
public getUser ( ) : |
||
리턴 |
public hasPermissions ( ) : boolean | ||
리턴 | boolean | Returns TRUE if the authenticated user has access or FALSE otherwise |
public resultList ( mixed $data, string | null $foundRows = null ) : Scalr\Api\DataType\ListResultEnvelope | ||
$data | mixed | The list of the objects which should be responded with |
$foundRows | string | null | optional The number of the found rows to inject Pagination into envelope |
리턴 | Scalr\Api\DataType\ListResultEnvelope | Returns list result |
public setApplication ( |
||
$app | API Application instance | |
리턴 |