PHP Class Tdt\Core\Repositories\ElasticsearchDefinitionRepository

Inheritance: extends BaseDefinitionRepository, implements Tdt\Core\Repositories\Interfaces\ElasticsearchDefinitionRepositoryInterface
Mostrar archivo Open project: tdt/core

Protected Properties

Property Type Description
$rules

Public Methods

Method Description
__construct ( ElasticsearchDefinition $model )
getAllParameters ( ) Retrieve the set of create parameters that make up a Mongo definition.
getCreateParameters ( ) Return the properties (= column fields) for this model.
store ( array $input )
update ( $model_id, array $input )

Private Methods

Method Description
addOriginalFile ( array $input ) : array Check if we can get the original file by looking for the passed index and document type in the jobs (CSV is only supported for now to be a computed original file field)

Method Details

__construct() public method

public __construct ( ElasticsearchDefinition $model )
$model ElasticsearchDefinition

getAllParameters() public method

Include the parameters that make up relationships with this model.
public getAllParameters ( )

getCreateParameters() public method

Return the properties (= column fields) for this model.
public getCreateParameters ( )

store() public method

public store ( array $input )
$input array

update() public method

public update ( $model_id, array $input )
$input array

Property Details

$rules protected_oe property

protected $rules