PHP Class BcSearchIndexManagerBehavior

Inheritance: extends ModelBehavior
Datei anzeigen Open project: baserproject/basercms

Public Properties

Property Type Description
$SearchIndex SearchIndex SearchIndex Model

Public Methods

Method 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 method

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

saveSearchIndex() public method

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

updateSearchIndexMeta() public method

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

Property Details

$SearchIndex public_oe property

SearchIndex Model
public SearchIndex $SearchIndex
return SearchIndex