Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Stud.IP
Commits
6807e67f
Commit
6807e67f
authored
2 years ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
remove unsused code, fixes #1342
Closes #1342 Merge request
studip/studip!828
parent
58b9e5d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/institute/calendar.php
+0
-139
0 additions, 139 deletions
app/controllers/institute/calendar.php
with
0 additions
and
139 deletions
app/controllers/institute/calendar.php
deleted
100644 → 0
+
0
−
139
View file @
58b9e5d8
<?php
/*
* This is the controller for the personal calendar
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Peter Thienel <thienel@data-quest.de>
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
*/
/**
* This controller provides all functions for a calendar of an institute.
*/
class
Institute_CalendarController
extends
AuthenticatedController
{
private
$calendar_settings
=
[];
private
$institute_id
;
# see Trails_Controller#before_filter
function
before_filter
(
&
$action
,
&
$args
)
{
parent
::
before_filter
(
$action
,
$args
);
$this
->
institute_id
=
Request
::
option
(
'cid'
);
$this
->
calendar_settings
=
Config
::
get
()
->
getValue
(
'CALENDAR_SETTINGS'
);
}
public
function
index_action
()
{
// switch to the view the user has selected in his personal settings
$this
->
redirect
(
'institute/calendar/'
.
$this
->
calendar_settings
[
'view'
]);
}
public
function
showday_action
(
$timestamp
=
null
)
{
$calendar
=
Calendar
::
getInstance
(
Calendar
::
RANGE_INST
,
$this
->
institute_id
);
PageLayout
::
setTitle
(
Context
::
getHeaderLine
()
.
' - '
.
_
(
"Terminkalender - Tagesansicht"
));
$_SESSION
[
'calendar_sess_control_data'
][
'view_prv'
]
=
'showday'
;
Navigation
::
activateItem
(
"/course/calendar/day"
);
$atime
=
$timestamp
?:
time
();
$at
=
date
(
'G'
,
$atime
);
if
(
$at
>=
$this
->
calendar_settings
[
'start'
]
&&
$at
<=
$this
->
calendar_settings
[
'end'
]
||
!
$atime
)
{
$st
=
$this
->
calendar_settings
[
'start'
];
$et
=
$this
->
calendar_settings
[
'end'
];
}
elseif
(
$at
<
$$this
->
calendar_settings
[
'start'
])
{
$st
=
0
;
$et
=
$this
->
calendar_settings
[
'start'
]
+
2
;
}
else
{
$st
=
$this
->
calendar_settings
[
'end'
]
-
2
;
$et
=
23
;
}
$this
->
_calendar
=
$calendar
;
$this
->
atime
=
$atime
;
$this
->
cmd
=
'showday'
;
$this
->
st
=
$st
;
$this
->
et
=
$et
;
}
/**
* @todo der include muss weg
*/
public
function
showweek_action
(
$timestamp
=
null
)
{
$calendar
=
Calendar
::
getInstance
(
Calendar
::
RANGE_INST
,
$this
->
institute_id
);
PageLayout
::
setTitle
(
Context
::
getHeaderLine
()
.
' - '
.
_
(
"Terminkalender - Wochenansicht"
));
$_SESSION
[
'calendar_sess_control_data'
][
'view_prv'
]
=
'showweek'
;
Navigation
::
activateItem
(
"/course/calendar/week"
);
$atime
=
$timestamp
?:
time
();
$at
=
date
(
'G'
,
$atime
);
if
(
$at
>=
$this
->
calendar_settings
[
'start'
]
&&
$at
<=
$this
->
calendar_settings
[
'end'
]
||
!
$atime
)
{
$st
=
$this
->
calendar_settings
[
'start'
];
$et
=
$this
->
calendar_settings
[
'end'
];
}
elseif
(
$at
<
$this
->
calendar_settings
[
'start'
])
{
$st
=
0
;
$et
=
$this
->
calendar_settings
[
'start'
]
+
2
;
}
else
{
$st
=
$this
->
calendar_settings
[
'end'
]
-
2
;
$et
=
23
;
}
include_once
'lib/calendar/lib/DbCalendarWeek.class.php'
;
$this
->
_calendar
=
$calendar
;
$this
->
atime
=
$atime
;
$this
->
cmd
=
'showweek'
;
$this
->
st
=
$st
;
$this
->
et
=
$et
;
}
public
function
showmonth_action
(
$timestamp
=
null
)
{
}
public
function
showyear_action
(
$timestamp
=
null
)
{
}
public
function
event_action
(
$event_id
=
null
)
{
}
public
function
seminar_events_action
()
{
}
public
function
showexport_action
()
{
}
public
function
export_action
()
{
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment