本文整理汇总了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();
}