本文整理汇总了PHP中FireflyIII\Http\Controllers\Controller::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Controller::__construct方法的具体用法?PHP Controller::__construct怎么用?PHP Controller::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FireflyIII\Http\Controllers\Controller
的用法示例。
在下文中一共展示了Controller::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __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');
}
示例2: __construct
/**
* @codeCoverageIgnore
*/
public function __construct()
{
parent::__construct();
View::share('title', trans('firefly.budgets'));
View::share('mainTitleIcon', 'fa-tasks');
View::share('hideBudgets', true);
}
示例3: __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);
}
示例4: __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);
}
示例5: __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');
}
示例6: __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);
}
示例7: __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');
}
示例8: __construct
/**
* @codeCoverageIgnore
*/
public function __construct()
{
parent::__construct();
View::share('title', trans('firefly.bills'));
View::share('mainTitleIcon', 'fa-calendar-o');
}
示例9: __construct
/**
*
*/
public function __construct()
{
parent::__construct();
View::share('title', trans('firefly.reports'));
View::share('mainTitleIcon', 'fa-line-chart');
}
示例10: __construct
/**
* @codeCoverageIgnore
*/
public function __construct()
{
parent::__construct();
// create chart generator:
$this->generator = app('FireflyIII\\Generator\\Chart\\Report\\ReportChartGeneratorInterface');
}
示例11: __construct
/**
* ConfigurationController constructor.
*/
public function __construct()
{
parent::__construct();
View::share('title', strval(trans('firefly.administration')));
View::share('mainTitleIcon', 'fa-hand-spock-o');
}
示例12: __construct
/**
* @codeCoverageIgnore
*/
public function __construct()
{
parent::__construct();
// create chart generator:
$this->generator = App::make('FireflyIII\\Generator\\Chart\\Budget\\BudgetChartGenerator');
}
示例13: __construct
/**
* Create a new password controller instance.
*
* @codeCoverageIgnore
*
*/
public function __construct()
{
parent::__construct();
$this->middleware('guest');
}
示例14: __construct
/**
*
*/
public function __construct()
{
parent::__construct();
View::share('mainTitleIcon', 'fa-paperclip');
View::share('title', trans('firefly.attachments'));
}
示例15: __construct
/**
*
*/
public function __construct()
{
parent::__construct();
// create chart generator:
$this->generator = app(PiggyBankChartGeneratorInterface::class);
}