Свойство | Тип | Описание | |
---|---|---|---|
$controller | Controller instance |
Метод | Описание | |
---|---|---|
__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 |
Результат | 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 |
Результат | Scalr\Api\DataType\ListResultEnvelope | Returns describe result |
public getSettingsCollection ( |
||
$entity | Entity containing collection of settings | |
Результат |
public getSettingsRules ( ) : array | ||
Результат | array |
public getSorting ( ) : array | null | ||
Результат | 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 |