メインコンテンツまでスキップ

Model::setOptions

Setting option parameter

Description

public self Model::setOptions( array $options )

Arguments

NameData typeDefaultRemarks
$optionsarrayOption parameter

Example

Controller
$model = new Model();
$model->setOptions(array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));

// Same with the following
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));