Exemplo n.º 1
0
 public function __construct(IManageResourcesPage $page, IResourceRepository $resourceRepository, IScheduleRepository $scheduleRepository, IImageFactory $imageFactory, IGroupViewRepository $groupRepository, IAttributeService $attributeService, IUserPreferenceRepository $userPreferenceRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->resourceRepository = $resourceRepository;
     $this->scheduleRepository = $scheduleRepository;
     $this->imageFactory = $imageFactory;
     $this->groupRepository = $groupRepository;
     $this->attributeService = $attributeService;
     $this->userPreferenceRepository = $userPreferenceRepository;
     $this->AddAction(ManageResourcesActions::ActionAdd, 'Add');
     $this->AddAction(ManageResourcesActions::ActionChangeAdmin, 'ChangeAdmin');
     $this->AddAction(ManageResourcesActions::ActionChangeConfiguration, 'ChangeConfiguration');
     $this->AddAction(ManageResourcesActions::ActionChangeDescription, 'ChangeDescription');
     $this->AddAction(ManageResourcesActions::ActionChangeImage, 'ChangeImage');
     $this->AddAction(ManageResourcesActions::ActionChangeLocation, 'ChangeLocation');
     $this->AddAction(ManageResourcesActions::ActionChangeNotes, 'ChangeNotes');
     $this->AddAction(ManageResourcesActions::ActionChangeSchedule, 'ChangeSchedule');
     $this->AddAction(ManageResourcesActions::ActionRemoveImage, 'RemoveImage');
     $this->AddAction(ManageResourcesActions::ActionRename, 'Rename');
     $this->AddAction(ManageResourcesActions::ActionDelete, 'Delete');
     $this->AddAction(ManageResourcesActions::ActionChangeStatus, 'ChangeStatus');
     $this->AddAction(ManageResourcesActions::ActionEnableSubscription, 'EnableSubscription');
     $this->AddAction(ManageResourcesActions::ActionDisableSubscription, 'DisableSubscription');
     $this->AddAction(ManageResourcesActions::ActionChangeAttributes, 'ChangeAttributes');
     $this->AddAction(ManageResourcesActions::ActionChangeSort, 'ChangeSortOrder');
     $this->AddAction(ManageResourcesActions::ActionChangeResourceType, 'ChangeResourceType');
     $this->AddAction(ManageResourcesActions::ActionBulkUpdate, 'BulkUpdate');
 }
Exemplo n.º 2
0
 public function __construct(ManageThemePage $page)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->AddAction('update', 'UpdateTheme');
     $this->AddAction('removeLogo', 'RemoveLogo');
 }
 public function __construct(IManageResourceStatusPage $page, UserSession $user, IResourceRepository $resourceRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->resourceRepository = $resourceRepository;
     $this->AddAction(ManageResourceStatusActions::Add, 'Add');
     $this->AddAction(ManageResourceStatusActions::Update, 'Update');
     $this->AddAction(ManageResourceStatusActions::Delete, 'Delete');
 }
Exemplo n.º 4
0
 public function __construct(IManageAttributesPage $page, IAttributeRepository $attributeRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->attributeRepository = $attributeRepository;
     $this->AddAction(ManageAttributesActions::AddAttribute, 'AddAttribute');
     $this->AddAction(ManageAttributesActions::DeleteAttribute, 'DeleteAttribute');
     $this->AddAction(ManageAttributesActions::UpdateAttribute, 'UpdateAttribute');
 }
 public function __construct(IManageConfigurationPage $page, IConfigurationSettings $settings)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->configSettings = $settings;
     $this->configFilePath = ROOT_DIR . 'config/config.php';
     $this->configFilePathDist = ROOT_DIR . 'config/config.dist.php';
     $this->AddAction(ConfigActions::Update, 'Update');
 }
Exemplo n.º 6
0
 public function __construct(IProfilePage $page, IUserRepository $userRepository, IAttributeService $attributeService)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->userRepository = $userRepository;
     $this->attributeService = $attributeService;
     $this->AddAction(ProfileActions::Update, 'UpdateProfile');
     $this->AddAction(ProfileActions::ChangeDefaultSchedule, 'ChangeDefaultSchedule');
 }
 /**
  * @param IManageAnnouncementsPage $page
  * @param IAnnouncementRepository $announcementRepository
  */
 public function __construct(IManageAnnouncementsPage $page, IAnnouncementRepository $announcementRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->announcementRepository = $announcementRepository;
     $this->AddAction(ManageAnnouncementsActions::Add, 'AddAnnouncement');
     $this->AddAction(ManageAnnouncementsActions::Change, 'ChangeAnnouncement');
     $this->AddAction(ManageAnnouncementsActions::Delete, 'DeleteAnnouncement');
 }
Exemplo n.º 8
0
 /**
  * @param ISchedulePage $page
  * @param IScheduleService $scheduleService
  * @param IResourceService $resourceService
  * @param ISchedulePageBuilder $schedulePageBuilder
  * @param IReservationService $reservationService
  * @param IDailyLayoutFactory $dailyLayoutFactory
  */
 public function __construct(ISchedulePage $page, IScheduleService $scheduleService, IResourceService $resourceService, ISchedulePageBuilder $schedulePageBuilder, IReservationService $reservationService, IDailyLayoutFactory $dailyLayoutFactory)
 {
     parent::__construct($page);
     $this->_page = $page;
     $this->_scheduleService = $scheduleService;
     $this->_resourceService = $resourceService;
     $this->_builder = $schedulePageBuilder;
     $this->_reservationService = $reservationService;
     $this->_dailyLayoutFactory = $dailyLayoutFactory;
 }
Exemplo n.º 9
0
 /**
  * @param IManageAccessoriesPage $page
  * @param IResourceRepository $resourceRepository
  * @param IAccessoryRepository $accessoryRepository
  */
 public function __construct(IManageAccessoriesPage $page, IResourceRepository $resourceRepository, IAccessoryRepository $accessoryRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->resourceRepository = $resourceRepository;
     $this->accessoryRepository = $accessoryRepository;
     $this->AddAction(ManageAccessoriesActions::Add, 'AddAccessory');
     $this->AddAction(ManageAccessoriesActions::Change, 'ChangeAccessory');
     $this->AddAction(ManageAccessoriesActions::Delete, 'DeleteAccessory');
 }
Exemplo n.º 10
0
 /**
  * @param IRegistrationPage $page
  * @param IRegistration|null $registration
  * @param IAuthentication|null $authentication
  * @param ICaptchaService|null $captchaService
  * @param IAttributeService|null $attributeService
  */
 public function __construct(IRegistrationPage $page, $registration = null, $authentication = null, $captchaService = null, $attributeService = null)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->SetRegistration($registration);
     $this->SetAuthentication($authentication);
     $this->SetCaptchaService($captchaService);
     $this->SetAttributeService($attributeService);
     $this->AddAction(RegisterActions::Register, 'Register');
 }
Exemplo n.º 11
0
 public function __construct(IManageResourceTypesPage $page, UserSession $user, IResourceRepository $resourceRepository, IAttributeService $attributeService)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->resourceRepository = $resourceRepository;
     $this->attributeService = $attributeService;
     $this->AddAction(ManageResourceTypesActions::Add, 'Add');
     $this->AddAction(ManageResourceTypesActions::Update, 'Update');
     $this->AddAction(ManageResourceTypesActions::Delete, 'Delete');
     $this->AddAction(ManageResourceTypesActions::ChangeAttributes, 'ChangeAttributes');
 }
Exemplo n.º 12
0
 /**
  * @param IManageQuotasPage $page
  * @param IResourceRepository $resourceRepository
  * @param IGroupViewRepository $groupRepository
  * @param IScheduleRepository $scheduleRepository
  * @param IQuotaViewRepository|IQuotaRepository $quotaRepository
  */
 public function __construct(IManageQuotasPage $page, IResourceRepository $resourceRepository, IGroupViewRepository $groupRepository, IScheduleRepository $scheduleRepository, IQuotaViewRepository $quotaRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->resourceRepository = $resourceRepository;
     $this->groupRepository = $groupRepository;
     $this->scheduleRepository = $scheduleRepository;
     $this->quotaRepository = $quotaRepository;
     $this->AddAction(ManageQuotasActions::AddQuota, 'AddQuota');
     $this->AddAction(ManageQuotasActions::DeleteQuota, 'DeleteQuota');
 }
 public function __construct(IManageResourceGroupsPage $page, UserSession $user, IResourceRepository $resourceRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->resourceRepository = $resourceRepository;
     $this->AddAction(ManageResourceGroupsActions::AddResource, 'AddResource');
     $this->AddAction(ManageResourceGroupsActions::RemoveResource, 'RemoveResource');
     $this->AddAction(ManageResourceGroupsActions::AddGroup, 'AddGroup');
     $this->AddAction(ManageResourceGroupsActions::MoveNode, 'MoveNode');
     $this->AddAction(ManageResourceGroupsActions::RenameGroup, 'RenameGroup');
     $this->AddAction(ManageResourceGroupsActions::DeleteGroup, 'DeleteGroup');
 }
Exemplo n.º 14
0
 public function __construct(IManageBlackoutsPage $page, IManageBlackoutsService $manageBlackoutsService, IScheduleRepository $scheduleRepository, IResourceRepository $resourceRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->manageBlackoutsService = $manageBlackoutsService;
     $this->scheduleRepository = $scheduleRepository;
     $this->resourceRepository = $resourceRepository;
     $this->AddAction(ManageBlackoutsActions::ADD, 'AddBlackout');
     $this->AddAction(ManageBlackoutsActions::DELETE, 'DeleteBlackout');
     $this->AddAction(ManageBlackoutsActions::LOAD, 'LoadBlackout');
     $this->AddAction(ManageBlackoutsActions::UPDATE, 'UpdateBlackout');
 }
 public function __construct(IManageReservationsPage $page, IManageReservationsService $manageReservationsService, IScheduleRepository $scheduleRepository, IResourceRepository $resourceRepository, IAttributeService $attributeService, IUserPreferenceRepository $userPreferenceRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->manageReservationsService = $manageReservationsService;
     $this->scheduleRepository = $scheduleRepository;
     $this->resourceRepository = $resourceRepository;
     $this->attributeService = $attributeService;
     $this->userPreferenceRepository = $userPreferenceRepository;
     $this->AddAction(ManageReservationsActions::UpdateAttribute, 'UpdateAttribute');
     $this->AddAction(ManageReservationsActions::ChangeStatus, 'UpdateResourceStatus');
 }
Exemplo n.º 16
0
 public function __construct(ISavedReportsPage $page, UserSession $user, IReportingService $service)
 {
     parent::__construct($page);
     $this->service = $service;
     $this->user = $user;
     $this->page = $page;
     $this->AddAction(ReportActions::Generate, 'GenerateReport');
     $this->AddAction(ReportActions::Email, 'EmailReport');
     $this->AddAction(ReportActions::Csv, 'CreateCsv');
     $this->AddAction(ReportActions::PrintReport, 'PrintReport');
     $this->AddAction(ReportActions::Delete, 'DeleteReport');
 }
Exemplo n.º 17
0
 public function __construct(IPersonalCalendarPage $page, IReservationViewRepository $repository, ICalendarFactory $calendarFactory, ICalendarSubscriptionService $subscriptionService, IUserRepository $userRepository, IResourceService $resourceService, IScheduleRepository $scheduleRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->reservationRepository = $repository;
     $this->calendarFactory = $calendarFactory;
     $this->subscriptionService = $subscriptionService;
     $this->userRepository = $userRepository;
     $this->resourceService = $resourceService;
     $this->scheduleRepository = $scheduleRepository;
     $this->AddAction(PersonalCalendarActions::ActionEnableSubscription, 'EnableSubscription');
     $this->AddAction(PersonalCalendarActions::ActionDisableSubscription, 'DisableSubscription');
 }
Exemplo n.º 18
0
 /**
  * @param IGenerateReportPage $page
  * @param UserSession $user
  * @param IReportingService $reportingService
  * @param IResourceRepository $resourceRepo
  * @param IScheduleRepository $scheduleRepo
  * @param IGroupViewRepository $groupRepo
  */
 public function __construct(IGenerateReportPage $page, UserSession $user, IReportingService $reportingService, IResourceRepository $resourceRepo, IScheduleRepository $scheduleRepo, IGroupViewRepository $groupRepo)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->user = $user;
     $this->reportingService = $reportingService;
     $this->resourceRepo = $resourceRepo;
     $this->scheduleRepo = $scheduleRepo;
     $this->groupRepo = $groupRepo;
     $this->AddAction(ReportActions::Generate, 'GenerateCustomReport');
     $this->AddAction(ReportActions::PrintReport, 'PrintReport');
     $this->AddAction(ReportActions::Csv, 'ExportToCsv');
     $this->AddAction(ReportActions::Save, 'SaveReport');
 }
Exemplo n.º 19
0
 /**
  * @param IManageGroupsPage $page
  * @param GroupRepository $groupRepository
  * @param ResourceRepository $resourceRepository
  */
 public function __construct(IManageGroupsPage $page, GroupRepository $groupRepository, ResourceRepository $resourceRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->groupRepository = $groupRepository;
     $this->resourceRepository = $resourceRepository;
     $this->AddAction(ManageGroupsActions::AddUser, 'AddUser');
     $this->AddAction(ManageGroupsActions::RemoveUser, 'RemoveUser');
     $this->AddAction(ManageGroupsActions::Permissions, 'ChangePermissions');
     $this->AddAction(ManageGroupsActions::AddGroup, 'AddGroup');
     $this->AddAction(ManageGroupsActions::RenameGroup, 'RenameGroup');
     $this->AddAction(ManageGroupsActions::DeleteGroup, 'DeleteGroup');
     $this->AddAction(ManageGroupsActions::Roles, 'ChangeRoles');
     $this->AddAction(ManageGroupsActions::GroupAdmin, 'ChangeGroupAdmin');
 }
Exemplo n.º 20
0
 /**
  * @param IManageUsersPage $page
  * @param UserRepository $userRepository
  * @param IResourceRepository $resourceRepository
  * @param PasswordEncryption $passwordEncryption
  * @param IManageUsersService $manageUsersService
  * @param IAttributeService $attributeService
  * @param IGroupRepository $groupRepository
  * @param IGroupViewRepository $groupViewRepository
  */
 public function __construct(IManageUsersPage $page, UserRepository $userRepository, IResourceRepository $resourceRepository, PasswordEncryption $passwordEncryption, IManageUsersService $manageUsersService, IAttributeService $attributeService, IGroupRepository $groupRepository, IGroupViewRepository $groupViewRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->userRepository = $userRepository;
     $this->resourceRepository = $resourceRepository;
     $this->passwordEncryption = $passwordEncryption;
     $this->manageUsersService = $manageUsersService;
     $this->attributeService = $attributeService;
     $this->groupRepository = $groupRepository;
     $this->groupViewRepository = $groupViewRepository;
     $this->AddAction(ManageUsersActions::Activate, 'Activate');
     $this->AddAction(ManageUsersActions::AddUser, 'AddUser');
     $this->AddAction(ManageUsersActions::Deactivate, 'Deactivate');
     $this->AddAction(ManageUsersActions::DeleteUser, 'DeleteUser');
     $this->AddAction(ManageUsersActions::Password, 'ResetPassword');
     $this->AddAction(ManageUsersActions::Permissions, 'ChangePermissions');
     $this->AddAction(ManageUsersActions::UpdateUser, 'UpdateUser');
     $this->AddAction(ManageUsersActions::ChangeAttributes, 'ChangeAttributes');
     $this->AddAction(ManageUsersActions::ChangeColor, 'ChangeColor');
     $this->AddAction(ManageUsersActions::ImportUsers, 'ImportUsers');
 }
Exemplo n.º 21
0
 public function __construct(IManageSchedulesPage $page, ManageScheduleService $manageSchedulesService, IGroupViewRepository $groupViewRepository)
 {
     parent::__construct($page);
     $this->page = $page;
     $this->manageSchedulesService = $manageSchedulesService;
     $this->groupViewRepository = $groupViewRepository;
     $this->AddAction(ManageSchedules::ActionAdd, 'Add');
     $this->AddAction(ManageSchedules::ActionChangeLayout, 'ChangeLayout');
     $this->AddAction(ManageSchedules::ActionChangeSettings, 'ChangeSettings');
     $this->AddAction(ManageSchedules::ActionMakeDefault, 'MakeDefault');
     $this->AddAction(ManageSchedules::ActionRename, 'Rename');
     $this->AddAction(ManageSchedules::ActionDelete, 'Delete');
     $this->AddAction(ManageSchedules::ActionEnableSubscription, 'EnableSubscription');
     $this->AddAction(ManageSchedules::ActionDisableSubscription, 'DisableSubscription');
     $this->AddAction(ManageSchedules::ChangeAdminGroup, 'ChangeAdminGroup');
 }