本文整理匯總了PHP中Prefs::ExtractProductCategory方法的典型用法代碼示例。如果您正苦於以下問題:PHP Prefs::ExtractProductCategory方法的具體用法?PHP Prefs::ExtractProductCategory怎麽用?PHP Prefs::ExtractProductCategory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Prefs
的用法示例。
在下文中一共展示了Prefs::ExtractProductCategory方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getIndex
public function getIndex()
{
$this->heads = array(array('SKU', array('search' => true, 'sort' => true)), array('Code', array('search' => true, 'sort' => true, 'attr' => array('class' => 'span2'))), array('Picture', array('search' => true, 'sort' => true, 'attr' => array('class' => 'span2'))), array('Description', array('search' => true, 'sort' => true)), array('Series', array('search' => true, 'sort' => true)), array('Price', array('search' => true, 'sort' => true)), array('Disc. Price', array('search' => true, 'sort' => true)), array('Category', array('search' => true, 'sort' => true, 'select' => Prefs::ExtractProductCategory())), array('Length / Panjang', array('search' => true, 'sort' => true)), array('Width / Lebar', array('search' => true, 'sort' => true)), array('Height / Tinggi', array('search' => true, 'sort' => false)), array('Diameter', array('search' => true, 'sort' => false)), array('Size Description', array('search' => true, 'sort' => true)), array('Color', array('search' => true, 'sort' => true)), array('Material', array('search' => true, 'sort' => true)), array('Tags', array('search' => true, 'sort' => true)), array('Created', array('search' => true, 'sort' => true, 'date' => true)), array('Last Update', array('search' => true, 'sort' => true, 'date' => true)));
//print $this->model->where('docFormat','picture')->get()->toJSON();
$this->title = 'Products';
$this->additional_filter = View::make('products.addfilter')->render();
$this->js_additional_param = "aoData.push( { 'name':'categoryFilter', 'value': \$('#assigned-product-filter').val() } );";
return parent::getIndex();
}