Свойство | Type | Description | |
---|---|---|---|
$app | Application instance |
Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
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 |
Résultat | 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 ( ) : |
||
Résultat |
public getCommonQueryParams ( ) : array | ||
Résultat | array | Returns array of common query parameters looks like [name => value] |
public getEnvironment ( ) : |
||
Résultat |
public getMaxResults ( ) : integer | ||
Résultat | integer | Returns maximum records per page |
public getPageNum ( ) : integer | ||
Résultat | integer | Returns the number of the page |
public getPageOffset ( ) : integer | ||
Résultat | integer | Returns page offset |
public getPagination ( integer $foundRows ) : Scalr\Api\DataType\Pagination | ||
$foundRows | integer | The number of records found |
Résultat | Scalr\Api\DataType\Pagination | Returns pagination object |
public getScopeCriteria ( string $scope = null, $strictToScope = false ) : array | ||
$scope | string | optional Scope override |
Résultat | array | Returns criteria |
public getUser ( ) : |
||
Résultat |
public hasPermissions ( ) : boolean | ||
Résultat | 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 |
Résultat | Scalr\Api\DataType\ListResultEnvelope | Returns list result |
public setApplication ( |
||
$app | API Application instance | |
Résultat |