PHP Class BcSearchIndexManagerBehavior

Inheritance: extends ModelBehavior
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Свойство Type Description
$SearchIndex SearchIndex SearchIndex Model

Méthodes publiques

Méthode Description
deleteSearchIndex ( Model $model, string $id ) コンテンツデータを削除する
saveSearchIndex ( Model $model, array $data ) : boolean コンテンツデータを登録する コンテンツデータを次のように作成して引き渡す array('SearchIndex' => array( 'model_id' => 'モデルでのID' 'category' => 'カテゴリ名', 'title' => 'コンテンツタイトル', // 検索対象 'detail' => 'コンテンツ内容', // 検索対象 'url' => 'URL', 'status' => '公開ステータス' ))
updateSearchIndexMeta ( Model $model ) : boolean コンテンツメタ情報を更新する

Method Details

deleteSearchIndex() public méthode

コンテンツデータを削除する
public deleteSearchIndex ( Model $model, string $id )
$model Model
$id string

saveSearchIndex() public méthode

コンテンツデータを登録する コンテンツデータを次のように作成して引き渡す array('SearchIndex' => array( 'model_id' => 'モデルでのID' 'category' => 'カテゴリ名', 'title' => 'コンテンツタイトル', // 検索対象 'detail' => 'コンテンツ内容', // 検索対象 'url' => 'URL', 'status' => '公開ステータス' ))
public saveSearchIndex ( Model $model, array $data ) : boolean
$model Model
$data array
Résultat boolean

updateSearchIndexMeta() public méthode

コンテンツメタ情報を更新する
public updateSearchIndexMeta ( Model $model ) : boolean
$model Model
Résultat boolean

Property Details

$SearchIndex public_oe property

SearchIndex Model
public SearchIndex $SearchIndex
Résultat SearchIndex