当前位置: 首页>>代码示例>>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;未经允许,请勿转载。