PHP Class Isswp101\Persimmon\DAL\ElasticsearchDAL

Inheritance: implements Isswp101\Persimmon\DAL\IDAL
Show file Open project: isswp101/elasticsearch-eloquent

Protected Properties

Property Type Description
$client
$emitter
$model

Public Methods

Method Description
__construct ( ElasticsearchModel $model, Elasticsearch\Client $client, EventEmitter $emitter )
delete ( )
get ( $id, array $options = [] )
getEventEmitter ( )
getModel ( )
put ( array $columns = ['*'] )
search ( array $query )
setModel ( Model $model )

Protected Methods

Method Description
getParams ( )

Method Details

__construct() public method

public __construct ( ElasticsearchModel $model, Elasticsearch\Client $client, EventEmitter $emitter )
$model Isswp101\Persimmon\ElasticsearchModel
$client Elasticsearch\Client
$emitter Isswp101\Persimmon\Event\EventEmitter

delete() public method

public delete ( )

get() public method

public get ( $id, array $options = [] )
$options array

getEventEmitter() public method

public getEventEmitter ( )

getModel() public method

public getModel ( )

getParams() protected method

protected getParams ( )

put() public method

public put ( array $columns = ['*'] )
$columns array

setModel() public method

public setModel ( Model $model )
$model Isswp101\Persimmon\Model

Property Details

$client protected property

protected $client

$emitter protected property

protected $emitter

$model protected property

protected $model