コード例 #1
0
ファイル: PaymentAbstract.php プロジェクト: Monori/imgservice
 public function __construct()
 {
     parent::__construct();
     $this->paymentMenu = new Menu();
     $this->paymentMenu->addItem(lang('Usage'), url('admin.payment'));
     $this->paymentMenu->addItem(lang('History'), url('admin.payment.history'));
 }
コード例 #2
0
ファイル: Home.php プロジェクト: Monori/imgservice
 public function __construct()
 {
     parent::__construct();
     $this->contentProviders = ModelContentProvider::all();
     if ($this->input('organisation')) {
         $this->organisations = ModelOrganisation::getByQuery($this->input('organisation'), 20, 0);
     }
 }
コード例 #3
0
 public function __construct($organisationId)
 {
     parent::__construct();
     $this->organisation = ModelOrganisation::getById($organisationId);
     if (!$this->organisation->hasRow()) {
         redirect(url('admin.home'));
     }
     $this->organisationsMenu = new Menu();
     $this->organisationsMenu->addItem(lang('Overview'), url('admin.organisation.home', ['organisationId' => $this->organisation->id]));
     $this->organisationsMenu->addItem(lang('Activity'), url('admin.organisation.activity', ['organisationId' => $this->organisation->id]));
     $this->organisationsMenu->addItem(lang('Invoices'), url('admin.organisation.invoices', ['organisationId' => $this->organisation->id]));
 }
コード例 #4
0
ファイル: Settings.php プロジェクト: Monori/imgservice
 public function __construct()
 {
     parent::__construct();
     $this->settings = ModelSettings::getInstance();
     if ($this->isPostBack()) {
         /* @var $input \Pecee\Http\Input\InputItem */
         foreach ($this->input('data') as $input) {
             $this->settings->data->{$input->getIndex()} = $input->getValue();
         }
         $this->settings->update();
         $this->setMessage(lang('Settings saved'), 'success');
         response()->refresh();
     }
 }