PHP 클래스 Isswp101\Persimmon\ElasticsearchModel

상속: extends Model, use trait Isswp101\Persimmon\Traits\Elasticsearchable, use trait Isswp101\Persimmon\Traits\Paginationable, use trait Isswp101\Persimmon\Traits\Relationshipable
파일 보기 프로젝트 열기: isswp101/elasticsearch-eloquent 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_dal Isswp101\Persimmon\DAL\ElasticsearchDAL

공개 메소드들

메소드 설명
__construct ( Isswp101\Persimmon\DAL\IDAL $dal, array $attributes = [] )
all ( QueryBuilder | array $query = [] ) : Collection | static[] Execute the query and get all items.
findWithParentId ( $id, $parent, array $columns = ['*'] )
first ( QueryBuilder | array $query = [] ) : static Execute the query and get the first result.
firstOrFail ( QueryBuilder | array $query = [] ) : static Execute the query and get the first result or throw an exception.
map ( QueryBuilder | array $query = [], callable $callback = null, integer $limit ) : integer Apply the callback to the documents of the given query.
search ( QueryBuilder | array $query = [] ) : ElasticsearchCollection | static[] Execute the query and get the result.

보호된 메소드들

메소드 설명
belongsTo ( $class )
hasMany ( $class )

메소드 상세

__construct() 공개 메소드

public __construct ( Isswp101\Persimmon\DAL\IDAL $dal, array $attributes = [] )
$dal Isswp101\Persimmon\DAL\IDAL
$attributes array

all() 공개 정적인 메소드

Execute the query and get all items.
public static all ( QueryBuilder | array $query = [] ) : Collection | static[]
$query Isswp101\Persimmon\QueryBuilder\QueryBuilder | array
리턴 Illuminate\Support\Collection | static[]

belongsTo() 보호된 메소드

protected belongsTo ( $class )

findWithParentId() 공개 정적인 메소드

public static findWithParentId ( $id, $parent, array $columns = ['*'] )
$columns array

first() 공개 정적인 메소드

Execute the query and get the first result.
public static first ( QueryBuilder | array $query = [] ) : static
$query Isswp101\Persimmon\QueryBuilder\QueryBuilder | array
리턴 static

firstOrFail() 공개 정적인 메소드

Execute the query and get the first result or throw an exception.
public static firstOrFail ( QueryBuilder | array $query = [] ) : static
$query Isswp101\Persimmon\QueryBuilder\QueryBuilder | array
리턴 static

hasMany() 보호된 메소드

protected hasMany ( $class )

map() 공개 정적인 메소드

Apply the callback to the documents of the given query.
public static map ( QueryBuilder | array $query = [], callable $callback = null, integer $limit ) : integer
$query Isswp101\Persimmon\QueryBuilder\QueryBuilder | array
$callback callable
$limit integer
리턴 integer hits.total

프로퍼티 상세

$_dal 공개적으로 프로퍼티

public ElasticsearchDAL,Isswp101\Persimmon\DAL $_dal
리턴 Isswp101\Persimmon\DAL\ElasticsearchDAL