コード例 #1
0
ファイル: AutoCompletePage.php プロジェクト: Trideon/gigolo
 public function __construct()
 {
     parent::__construct();
     $this->listMethods[AutoCompleteType::User] = 'GetUsers';
     $this->listMethods[AutoCompleteType::MyUsers] = 'GetMyUsers';
     $this->listMethods[AutoCompleteType::Group] = 'GetGroups';
 }
コード例 #2
0
ファイル: CalendarPage.php プロジェクト: Trideon/gigolo
 public function __construct()
 {
     parent::__construct('ResourceCalendar');
     $resourceRepository = new ResourceRepository();
     $scheduleRepository = new ScheduleRepository();
     $userRepository = new UserRepository();
     $resourceService = new ResourceService($resourceRepository, PluginManager::Instance()->LoadPermission(), new AttributeService(new AttributeRepository()), $userRepository);
     $subscriptionService = new CalendarSubscriptionService($userRepository, $resourceRepository, $scheduleRepository);
     $privacyFilter = new PrivacyFilter(new ReservationAuthorization(PluginManager::Instance()->LoadAuthorization()));
     $this->_presenter = new CalendarPresenter($this, new CalendarFactory(), new ReservationViewRepository(), $scheduleRepository, $resourceService, $subscriptionService, $privacyFilter);
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct('MyDashboard');
     $this->_presenter = new DashboardPresenter($this);
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct('NotificationPreferences');
     $this->presenter = new NotificationPreferencesPresenter($this, new UserRepository());
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
     $factory = new ReservationPresenterFactory();
     $this->presenter = $factory->Delete($this, ServiceLocator::GetServer()->GetUserSession());
 }
コード例 #6
0
ファイル: OpeningsPage.php プロジェクト: Trideon/gigolo
 public function __construct()
 {
     parent::__construct('FindAnOpening');
 }
コード例 #7
0
ファイル: ParticipationPage.php プロジェクト: ksdtech/booked
 public function __construct()
 {
     parent::__construct('OpenInvitations');
     $rules = array(new ReservationStartTimeRule(new ScheduleRepository()), new ResourceMinimumNoticeRule(), new ResourceMaximumNoticeRule());
     $this->presenter = new ParticipationPresenter($this, new ReservationRepository(), new ReservationViewRepository(), $rules);
 }
コード例 #8
0
 public function __construct()
 {
     parent::__construct('Error', 1);
 }
コード例 #9
0
ファイル: ParticipationPage.php プロジェクト: Trideon/gigolo
 public function __construct()
 {
     parent::__construct('OpenInvitations');
     $this->presenter = new ParticipationPresenter($this, new ReservationRepository(), new ReservationViewRepository());
 }
コード例 #10
0
ファイル: PasswordPage.php プロジェクト: hugutux/booked
 public function __construct()
 {
     parent::__construct('ChangePassword');
     $this->presenter = new PasswordPresenter($this, new UserRepository(), new PasswordEncryption());
 }
コード例 #11
0
ファイル: AdminPage.php プロジェクト: hugutux/booked
 public function IsValid()
 {
     if (parent::IsValid()) {
         Log::Debug('Action passed all validations');
         return true;
     }
     $errors = new ActionErrors();
     foreach ($this->smarty->failedValidators as $validator) {
         Log::Debug('Failed validator %s', $validator);
         $errors->Add($validator);
     }
     $this->SetJson($errors);
     return false;
 }