当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminBaseController::__construct方法代码示例

本文整理汇总了PHP中AdminBaseController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminBaseController::__construct方法的具体用法?PHP AdminBaseController::__construct怎么用?PHP AdminBaseController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdminBaseController的用法示例。


在下文中一共展示了AdminBaseController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     // Security check
     $security = $this->app->security;
     $security->authorized('editor');
 }
开发者ID:wolfmoritz,项目名称:osc,代码行数:10,代码来源:AdminServiceController.php

示例2: __construct

 /**
  * @param AdRepository $adRepository
  * @param PhotoRepository $photoRepository
  */
 public function __construct(AdRepository $adRepository, PhotoRepository $photoRepository)
 {
     $this->photoRepository = $photoRepository;
     $this->adRepository = $adRepository;
     parent::__construct();
     $this->beforeFilter('Admin');
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:11,代码来源:AdminAdsController.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->data['dashboardActive'] = 'active';
     $this->data['dashboardOpen'] = 'active open';
     $this->data['pageTitle'] = 'Dashboard';
 }
开发者ID:rodrigopbel,项目名称:ong,代码行数:7,代码来源:AdminDashboardController.php

示例4:

 /**
  * @param PaymentRepository $paymentRepository
  * @param SubscriptionRepository $subscriptionRepository
  * @param RefundRepository $refundRepository
  */
 function __construct(PaymentRepository $paymentRepository, SubscriptionRepository $subscriptionRepository, RefundRepository $refundRepository)
 {
     $this->paymentRepository = $paymentRepository;
     $this->subscriptionRepository = $subscriptionRepository;
     $this->refundRepository = $refundRepository;
     parent::__construct();
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:12,代码来源:AdminRefundsController.php

示例5: __construct

 /**
  * @param SettingRepository $settingRepository
  * @param CountryRepository $countryRepository
  * @param EventRepository $eventRepository
  * @param EventPriceRepository $eventPriceRepository
  */
 public function __construct(SettingRepository $settingRepository, CountryRepository $countryRepository, EventRepository $eventRepository, EventPriceRepository $eventPriceRepository)
 {
     $this->settingRepository = $settingRepository;
     $this->countryRepository = $countryRepository;
     parent::__construct();
     $this->eventRepository = $eventRepository;
     $this->eventPriceRepository = $eventPriceRepository;
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:14,代码来源:AdminSettingsController.php

示例6: __construct

 /**
  * Inject the models.
  * @param User $user
  * @param Role $role
  * @param Permission $permission
  */
 public function __construct(User $user, Role $role, Permission $permission)
 {
     $this->user = $user;
     $this->role = $role;
     $this->permission = $permission;
     $this->beforeFilter('Admin');
     parent::__construct();
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:14,代码来源:AdminRolesController.php

示例7: __construct

 public function __construct(LocationRepository $locationRepository, UserRepository $userRepository, CountryRepository $countryRepository)
 {
     $this->locationRepository = $locationRepository;
     $this->userRepository = $userRepository;
     $this->countryRepository = $countryRepository;
     $this->beforeFilter('Admin');
     parent::__construct();
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:8,代码来源:AdminLocationsController.php

示例8:

 function __construct(SubscriptionRepository $subscriptionRepository, EventRepository $eventRepository, PackageRepository $packageRepository, UserRepository $userRepository)
 {
     $this->subscriptionRepository = $subscriptionRepository;
     $this->eventRepository = $eventRepository;
     $this->packageRepository = $packageRepository;
     $this->userRepository = $userRepository;
     parent::__construct();
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:8,代码来源:AdminSubscriptionsController.php

示例9: __construct

 /**
  * Inject the models.
  * @param UserRepository|User $userRepository
  * @param Role $role
  * @param Permission $permission
  * @param AuthService $authService
  */
 public function __construct(UserRepository $userRepository, Role $role, Permission $permission, AuthService $authService)
 {
     $this->userRepository = $userRepository;
     $this->role = $role;
     $this->permission = $permission;
     $this->beforeFilter('Admin', array('except' => array('index', 'getIndex', 'view', 'getReport', 'postReport', 'getData')));
     parent::__construct();
     $this->authService = $authService;
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:16,代码来源:AdminUsersController.php

示例10: __construct

 /**
  * Inject the models.
  * @param \Acme\Blog\BlogRepository|\Post $blogRepository
  * @param CategoryRepository|\Category $categoryRepository
  * @param Acme\User\UserRepository $userRepository
  * @param Acme\Photo\PhotoRepository $photoRepository
  * @param TagRepository $tagRepository
  */
 public function __construct(BlogRepository $blogRepository, CategoryRepository $categoryRepository, UserRepository $userRepository, PhotoRepository $photoRepository, TagRepository $tagRepository)
 {
     $this->blogRepository = $blogRepository;
     $this->categoryRepository = $categoryRepository;
     $this->userRepository = $userRepository;
     $this->photoRepository = $photoRepository;
     $this->beforeFilter('Admin');
     parent::__construct();
     $this->tagRepository = $tagRepository;
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:18,代码来源:AdminBlogsController.php

示例11:

 function __construct(EventRepository $eventRepository, CategoryRepository $categoryRepository, LocationRepository $locationRepository, UserRepository $userRepository, PhotoRepository $photoRepository, SettingRepository $settingRepository, PackageRepository $packageRepository, eventModel $eventTags, TagRepository $tagRepository)
 {
     $this->eventRepository = $eventRepository;
     $this->categoryRepository = $categoryRepository;
     $this->userRepository = $userRepository;
     $this->photoRepository = $photoRepository;
     $this->locationRepository = $locationRepository;
     $this->settingRepository = $settingRepository;
     $this->packageRepository = $packageRepository;
     $this->eventTags = $eventTags;
     $this->tagRepository = $tagRepository;
     parent::__construct();
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:13,代码来源:AdminEventsController.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->data['$participacionOpen'] = 'active open';
     $this->data['pageTitle'] = 'Participaciones';
 }
开发者ID:rodrigopbel,项目名称:ong,代码行数:6,代码来源:ParticipacionesController.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->model = new AdminNewMembersModel();
 }
开发者ID:gpuenteallott,项目名称:rox,代码行数:5,代码来源:adminnewmembers.ctrl.php

示例14:

 function __construct(SubscriptionRepository $subscriptionRepository)
 {
     parent::__construct();
     $this->subscriptionRepository = $subscriptionRepository;
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:5,代码来源:AdminStatusesController.php

示例15: __construct

 /**
  * Inject the models.
  * @param Acme\Comment\CommentRepository $commentRepository
  */
 public function __construct(CommentRepository $commentRepository)
 {
     $this->beforeFilter('Admin');
     $this->commentRepository = $commentRepository;
     parent::__construct();
 }
开发者ID:christiannwamba,项目名称:laravel-site,代码行数:10,代码来源:AdminCommentsController.php


注:本文中的AdminBaseController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。