本文整理汇总了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');
}
示例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');
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->data['dashboardActive'] = 'active';
$this->data['dashboardOpen'] = 'active open';
$this->data['pageTitle'] = 'Dashboard';
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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();
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->data['$participacionOpen'] = 'active open';
$this->data['pageTitle'] = 'Participaciones';
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->model = new AdminNewMembersModel();
}
示例14:
function __construct(SubscriptionRepository $subscriptionRepository)
{
parent::__construct();
$this->subscriptionRepository = $subscriptionRepository;
}
示例15: __construct
/**
* Inject the models.
* @param Acme\Comment\CommentRepository $commentRepository
*/
public function __construct(CommentRepository $commentRepository)
{
$this->beforeFilter('Admin');
$this->commentRepository = $commentRepository;
parent::__construct();
}