當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。