Esempio n. 1
0
 /**
  * __construct
  *
  * @param GroupInterface $group
  * @param GroupForm     $groupForm
  */
 public function __construct(GroupInterface $group, GroupForm $groupForm)
 {
     parent::__construct($group, $groupForm);
     $this->title['parent'] = trans_choice('groups::global.groups', 2);
     // Establish Filters
     $this->beforeFilter('inGroup:Admins');
 }
Esempio n. 2
0
 /**
  * List files
  * @return response views
  */
 public function index()
 {
     $page = Input::get('page');
     $type = Input::get('type');
     $gallery_id = Input::get('gallery_id');
     $view = Input::get('view');
     if ($view != 'filepicker') {
         return parent::index();
     }
     $itemsPerPage = Config::get('files::admin.itemsPerPage');
     $data = $this->repository->byPageFrom($page, $itemsPerPage, $gallery_id, array('translations'), true, $type);
     $models = Paginator::make($data->items, $data->totalItems, $itemsPerPage);
     $this->layout->content = View::make('files.admin.' . $view)->withModels($models);
 }
Esempio n. 3
0
 public function __construct(MenuInterface $menu, MenuForm $menuform)
 {
     parent::__construct($menu, $menuform);
     $this->title['parent'] = trans_choice('menus::global.menus', 2);
 }
Esempio n. 4
0
 public function __construct(DashboardInterface $dashboard)
 {
     parent::__construct($dashboard);
     $this->title['parent'] = trans('dashboard::global.Dashboard');
 }
Esempio n. 5
0
 public function __construct(GalleryInterface $gallery, GalleryForm $galleryform)
 {
     parent::__construct($gallery, $galleryform);
     $this->title['parent'] = trans_choice('galleries::global.galleries', 2);
 }
Esempio n. 6
0
 public function __construct(ContactInterface $contact, ContactForm $contactform)
 {
     parent::__construct($contact, $contactform);
     $this->title['parent'] = trans_choice('contacts::global.contacts', 2);
 }
Esempio n. 7
0
 public function __construct(NewsInterface $news, NewsForm $newsform)
 {
     parent::__construct($news, $newsform);
     $this->title['parent'] = trans_choice('news::global.news', 2);
 }
Esempio n. 8
0
 public function __construct(PartnerInterface $partner, PartnerForm $partnerform)
 {
     parent::__construct($partner, $partnerform);
     $this->title['parent'] = trans_choice('partners::global.partners', 2);
 }
Esempio n. 9
0
 public function __construct(CategoryInterface $category, CategoryForm $categoryform)
 {
     parent::__construct($category, $categoryform);
     $this->title['parent'] = trans_choice('categories::global.categories', 2);
 }
Esempio n. 10
0
 /**
  * __construct
  *
  * @param UserInterface $user
  * @param UserForm      $userform
  */
 public function __construct(UserInterface $user, UserForm $userform)
 {
     parent::__construct($user, $userform);
     $this->title['parent'] = trans_choice('users::global.users', 2);
 }
Esempio n. 11
0
 public function __construct(BlockInterface $block, BlockForm $blockform)
 {
     parent::__construct($block, $blockform);
     $this->title['parent'] = trans_choice('blocks::global.blocks', 2);
 }
Esempio n. 12
0
 public function __construct(ProjectInterface $project, ProjectForm $projectform)
 {
     parent::__construct($project, $projectform);
     $this->title['parent'] = trans_choice('projects::global.projects', 2);
 }
Esempio n. 13
0
 public function __construct(TranslationInterface $translation, TranslationForm $translationform)
 {
     parent::__construct($translation, $translationform);
     $this->title['parent'] = trans_choice('translations::global.translations', 2);
 }
Esempio n. 14
0
 public function __construct(SettingInterface $setting, Manager $manager)
 {
     $this->manager = $manager;
     parent::__construct($setting);
     $this->title['parent'] = ucfirst(trans('global.settings'));
 }
Esempio n. 15
0
 public function __construct(TagInterface $tag, TagForm $tagform)
 {
     parent::__construct($tag, $tagform);
     $this->title['parent'] = trans_choice('tags::global.tags', 2);
 }
Esempio n. 16
0
 public function __construct(PlaceInterface $place, PlaceForm $placeform)
 {
     parent::__construct($place, $placeform);
     $this->title['parent'] = trans_choice('places::global.places', 2);
 }
Esempio n. 17
0
 public function __construct(EventInterface $event, EventForm $eventform)
 {
     parent::__construct($event, $eventform);
     $this->title['parent'] = trans_choice('events::global.events', 2);
 }