当前位置: 首页>>代码示例>>PHP>>正文


PHP Prefs::getCategory方法代码示例

本文整理汇总了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();
 }
开发者ID:awidarto,项目名称:bilnatracker,代码行数:7,代码来源:TemplateController.php

示例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();
 }
开发者ID:awidarto,项目名称:tmadminflat,代码行数:9,代码来源:BrochureController.php

示例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();
});
开发者ID:awidarto,项目名称:tmadminflat,代码行数:31,代码来源:routes.php


注:本文中的Prefs::getCategory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。