Свойство | Type | Description | |
---|---|---|---|
$controller | Controller instance |
Méthode | Description | |
---|---|---|
__construct ( |
Constructor | |
convertInputValue ( $fieldType, $value, $fieldName = '' ) | ||
convertOutputValue ( string $fieldType, string $value ) : mixed | Converts output value | |
copyAlterableProperties ( object $object, |
Copies all alterable properties from the request object to Entity | |
find ( array $criteria = null, callable $findCallback = null ) : |
Fetches records according to rules set | |
getCriteria ( array $criteria = null ) : array | null | Adjusts search criteria according to RULE_TYPE_FILTERABLE rules and Request | |
getDescribeResult ( array $criteria = null, callable $findCallback = null ) : Scalr\Api\DataType\ListResultEnvelope | Gets describe result | |
getSettingsCollection ( |
Gets settings collection from entity. | |
getSettingsRules ( ) : array | Gets settings to data rules | |
getSorting ( ) : array | null | Gets sorting option for the find method of the Entity | |
toData ( $entity ) | ||
toEntity ( $data ) | ||
validateEntity ( |
Validates entity | |
validateObject ( object $object, string $method = null ) | Validates object | |
validateString ( string $string, string $message = 'Invalid string' ) | Validates specified string |
public __construct ( |
||
$controller | The controller instance |
public static convertInputValue ( $fieldType, $value, $fieldName = '' ) |
public copyAlterableProperties ( object $object, |
||
$object | object | An object (source) |
$entity | An Entity (destination) |
public find ( array $criteria = null, callable $findCallback = null ) : |
||
$criteria | array | optional Default search criteria |
$findCallback | callable | optional Find method. Default value: find |
Résultat | Returns current instance that actually is iterator of the found records |
public getDescribeResult ( array $criteria = null, callable $findCallback = null ) : Scalr\Api\DataType\ListResultEnvelope | ||
$criteria | array | Default search criteria |
$findCallback | callable | optional Find method. Default value: find |
Résultat | Scalr\Api\DataType\ListResultEnvelope | Returns describe result |
public getSettingsCollection ( |
||
$entity | Entity containing collection of settings | |
Résultat |
public getSettingsRules ( ) : array | ||
Résultat | array |
public getSorting ( ) : array | null | ||
Résultat | array | null | Returns sorting option for the find method of the Entity |
public validateEntity ( |
||
$entity | An Entity |
public validateObject ( object $object, string $method = null ) | ||
$object | object | An object provided with the request |
$method | string | optional HTTP METHOD |
public validateString ( string $string, string $message = 'Invalid string' ) | ||
$string | string | A string |
$message | string | optional A error message |