PHP Class AlgoliaSearch\Laravel\ModelHelper

Mostrar archivo Open project: algolia/algoliasearch-laravel

Public Properties

Property Type Description
$algolia

Public Methods

Method Description
__construct ( AlgoliaManager $algolia )
getAlgoliaRecord ( Model $model, $indexName )
getFinalIndexName ( Model $model, $indexName )
getIndices ( Model $model, $indexName = null ) : Index
getIndicesTmp ( Model $model )
getKey ( Model $model )
getObjectId ( Model $model )
getObjectIdKey ( Model $model )
getReplicasSettings ( Model $model )
getSettings ( Model $model )
getSlavesSettings ( Model $model )
indexOnly ( Model $model, $index_name )
isAutoDelete ( Model $model )
isAutoIndex ( Model $model )
wouldBeIndexed ( Model $model, $index_name )

Private Methods

Method Description
getIndexName ( Model $model )
hasAlgoliaTrait ( Model $class, $autoload = false )

Method Details

__construct() public method

public __construct ( AlgoliaManager $algolia )
$algolia Vinkla\Algolia\AlgoliaManager

getAlgoliaRecord() public method

public getAlgoliaRecord ( Model $model, $indexName )
$model Illuminate\Database\Eloquent\Model

getFinalIndexName() public method

public getFinalIndexName ( Model $model, $indexName )
$model Illuminate\Database\Eloquent\Model

getIndices() public method

public getIndices ( Model $model, $indexName = null ) : Index
$model Illuminate\Database\Eloquent\Model
return AlgoliaSearch\Index

getIndicesTmp() public method

public getIndicesTmp ( Model $model )
$model Illuminate\Database\Eloquent\Model

getKey() public method

public getKey ( Model $model )
$model Illuminate\Database\Eloquent\Model

getObjectId() public method

public getObjectId ( Model $model )
$model Illuminate\Database\Eloquent\Model

getObjectIdKey() public method

public getObjectIdKey ( Model $model )
$model Illuminate\Database\Eloquent\Model

getReplicasSettings() public method

public getReplicasSettings ( Model $model )
$model Illuminate\Database\Eloquent\Model

getSettings() public method

public getSettings ( Model $model )
$model Illuminate\Database\Eloquent\Model

getSlavesSettings() public method

public getSlavesSettings ( Model $model )
$model Illuminate\Database\Eloquent\Model

indexOnly() public method

public indexOnly ( Model $model, $index_name )
$model Illuminate\Database\Eloquent\Model

isAutoDelete() public method

public isAutoDelete ( Model $model )
$model Illuminate\Database\Eloquent\Model

isAutoIndex() public method

public isAutoIndex ( Model $model )
$model Illuminate\Database\Eloquent\Model

wouldBeIndexed() public method

public wouldBeIndexed ( Model $model, $index_name )
$model Illuminate\Database\Eloquent\Model

Property Details

$algolia public_oe property

public $algolia