本文整理汇总了PHP中Prefs::getCategory方法的典型用法代码示例。如果您正苦于以下问题:PHP Prefs::getCategory方法的具体用法?PHP Prefs::getCategory怎么用?PHP Prefs::getCategory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Prefs
的用法示例。
在下文中一共展示了Prefs::getCategory方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIndex
public function getIndex()
{
$categories = Prefs::getCategory()->catToSelection('title', 'title');
$this->heads = array(array('Title', array('search' => true, 'sort' => true)), array('Creator', array('search' => true, 'sort' => false)), array('Category', array('search' => true, 'select' => $categories, '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();
return parent::getIndex();
}
示例2: getIndex
public function getIndex()
{
$categories = Prefs::getCategory()->catToSelection('title', 'title');
$this->heads = array(array('Title', array('search' => true, 'sort' => true)), array('Status', array('search' => true, 'sort' => true)), array('Creator', array('search' => true, 'sort' => false)), array('Category', array('search' => true, 'select' => $categories, '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->modal_sets = View::make(strtolower($this->controller_name) . '.modal')->render();
$this->js_table_event = View::make(strtolower($this->controller_name) . '.jsevent')->render();
return parent::getIndex();
}
示例3: function
Route::get('last/{entity}', function ($entity) {
$seq = new Sequence();
print $seq->getLastId($entity);
});
Route::get('init/{entity}/{initial}', function ($entity, $initial) {
$seq = new Sequence();
print_r($seq->setInitialValue($entity, $initial));
});
Route::get('hashme/{mypass}', function ($mypass) {
print Hash::make($mypass);
});
Route::get('xtest', function () {
Excel::load('WEBSITE_INVESTORS_ALLIANCE.xlsx')->calculate()->dump();
});
Route::get('xcat', function () {
print_r(Prefs::getCategory());
});
Route::get('barcode/dl/{txt}', function ($txt) {
$barcode = new Barcode();
$barcode->make($txt, 'code128', 60, 'horizontal', true);
return $barcode->render('jpg', $txt, true);
});
Route::get('barcode/{txt}', function ($txt) {
$barcode = new Barcode();
$barcode->make($txt, 'code128', 60, 'horizontal', true);
return $barcode->render('jpg', $txt);
});
Route::get('media', function () {
$media = Product::all();
print $media->toJson();
});