當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Controllers\Controller類代碼示例

本文整理匯總了PHP中FireflyIII\Http\Controllers\Controller的典型用法代碼示例。如果您正苦於以下問題:PHP Controller類的具體用法?PHP Controller怎麽用?PHP Controller使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Controller類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * ConfigurationController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', strval(trans('firefly.administration')));
     View::share('mainTitleIcon', 'fa-hand-spock-o');
 }
開發者ID:roberthorlings,項目名稱:firefly-iii,代碼行數:9,代碼來源:ConfigurationController.php

示例2: __construct

 /**
  * HelpController constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
開發者ID:roberthorlings,項目名稱:firefly-iii,代碼行數:7,代碼來源:HelpController.php

示例3: __construct

 /**
  * RuleController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', trans('firefly.rules'));
     View::share('mainTitleIcon', 'fa-random');
 }
開發者ID:zjean,項目名稱:firefly-iii,代碼行數:9,代碼來源:RuleController.php

示例4: __construct

 /**
  * @codeCoverageIgnore
  *
  * @param ReportHelperInterface $helper
  */
 public function __construct(ReportHelperInterface $helper)
 {
     parent::__construct();
     $this->helper = $helper;
     View::share('title', trans('firefly.reports'));
     View::share('mainTitleIcon', 'fa-line-chart');
 }
開發者ID:webenhanced,項目名稱:firefly-iii,代碼行數:12,代碼來源:ReportController.php

示例5: __construct

 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', trans('firefly.budgets'));
     View::share('mainTitleIcon', 'fa-tasks');
     View::share('hideBudgets', true);
 }
開發者ID:webenhanced,項目名稱:firefly-iii,代碼行數:10,代碼來源:BudgetController.php

示例6: __construct

 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', 'Tags');
     View::share('mainTitleIcon', 'fa-tags');
     View::share('hideTags', true);
     $this->tagOptions = ['nothing' => 'Just a regular tag.', 'balancingAct' => 'The tag takes at most two transactions; an expense and a transfer. They\'ll balance each other out.', 'advancePayment' => 'The tag accepts one expense and any number of deposits aimed to repay the original expense.'];
     View::share('tagOptions', $this->tagOptions);
 }
開發者ID:ebbz,項目名稱:firefly-iii,代碼行數:12,代碼來源:TagController.php

示例7: __construct

 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', 'Tags');
     View::share('mainTitleIcon', 'fa-tags');
     View::share('hideTags', true);
     $this->tagOptions = ['nothing' => trans('firefly.regular_tag'), 'balancingAct' => trans('firefly.balancing_act'), 'advancePayment' => trans('firefly.advance_payment')];
     View::share('tagOptions', $this->tagOptions);
 }
開發者ID:zjean,項目名稱:firefly-iii,代碼行數:12,代碼來源:TagController.php

示例8: __construct

 /**
  * @codeCoverageIgnore
  *
  * @param ReportHelperInterface $helper
  */
 public function __construct(ReportHelperInterface $helper)
 {
     parent::__construct();
     $this->helper = $helper;
     $this->accountHelper = app('FireflyIII\\Helpers\\Report\\AccountReportHelperInterface');
     $this->budgetHelper = app('FireflyIII\\Helpers\\Report\\BudgetReportHelperInterface');
     $this->balanceHelper = app('FireflyIII\\Helpers\\Report\\BalanceReportHelperInterface');
     View::share('title', trans('firefly.reports'));
     View::share('mainTitleIcon', 'fa-line-chart');
 }
開發者ID:zjean,項目名稱:firefly-iii,代碼行數:15,代碼來源:ReportController.php

示例9: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', trans('firefly.transactions'));
     View::share('mainTitleIcon', 'fa-repeat');
     $maxFileSize = Steam::phpBytes(ini_get('upload_max_filesize'));
     $maxPostSize = Steam::phpBytes(ini_get('post_max_size'));
     $uploadSize = min($maxFileSize, $maxPostSize);
     View::share('uploadSize', $uploadSize);
 }
開發者ID:roberthorlings,項目名稱:firefly-iii,代碼行數:13,代碼來源:TransactionController.php

示例10: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', trans('firefly.csv'));
     View::share('mainTitleIcon', 'fa-file-text-o');
     if (Config::get('firefly.csv_import_enabled') === false) {
         throw new FireflyException('CSV Import is not enabled.');
     }
     $this->wizard = app('FireflyIII\\Helpers\\Csv\\WizardInterface');
     $this->data = app('FireflyIII\\Helpers\\Csv\\Data');
 }
開發者ID:zetaron,項目名稱:firefly-iii,代碼行數:14,代碼來源:CsvController.php

示例11: __construct

 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', trans('firefly.bills'));
     View::share('mainTitleIcon', 'fa-calendar-o');
 }
開發者ID:webenhanced,項目名稱:firefly-iii,代碼行數:9,代碼來源:BillController.php

示例12: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     View::share('title', trans('firefly.reports'));
     View::share('mainTitleIcon', 'fa-line-chart');
 }
開發者ID:roberthorlings,項目名稱:firefly-iii,代碼行數:9,代碼來源:ReportController.php

示例13: __construct

 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     parent::__construct();
     // create chart generator:
     $this->generator = app('FireflyIII\\Generator\\Chart\\Report\\ReportChartGeneratorInterface');
 }
開發者ID:zjean,項目名稱:firefly-iii,代碼行數:9,代碼來源:ReportController.php

示例14: __construct

 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     parent::__construct();
     // create chart generator:
     $this->generator = App::make('FireflyIII\\Generator\\Chart\\Budget\\BudgetChartGenerator');
 }
開發者ID:ebbz,項目名稱:firefly-iii,代碼行數:9,代碼來源:BudgetController.php

示例15: __construct

 /**
  * Create a new password controller instance.
  *
  * @codeCoverageIgnore
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest');
 }
開發者ID:zetaron,項目名稱:firefly-iii,代碼行數:11,代碼來源:PasswordController.php


注:本文中的FireflyIII\Http\Controllers\Controller類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。