Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Flexexport
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
Flexexport
Commits
14f887da
Commit
14f887da
authored
Dec 8, 2021
by
Moritz Strohm
Browse files
Options
Downloads
Patches
Plain Diff
CourseDateDecorator: provide ID and name of SemType
parent
ccd67605
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
classes/decorators/CourseDateDecorator.class.php
+19
-0
19 additions, 0 deletions
classes/decorators/CourseDateDecorator.class.php
plugin.manifest
+1
-1
1 addition, 1 deletion
plugin.manifest
templates/decorators/course_date_decorator.php
+14
-0
14 additions, 0 deletions
templates/decorators/course_date_decorator.php
with
34 additions
and
1 deletion
classes/decorators/CourseDateDecorator.class.php
+
19
−
0
View file @
14f887da
...
@@ -39,6 +39,8 @@ class CourseDateDecorator implements Decorator
...
@@ -39,6 +39,8 @@ class CourseDateDecorator implements Decorator
'course_name'
,
'course_name'
,
'course_full_name'
,
'course_full_name'
,
'course_description'
,
'course_description'
,
'course_sem_type_id'
,
'course_sem_type_name'
,
'course_institute_names'
,
'course_institute_names'
,
'course_institute_ids'
,
'course_institute_ids'
,
'course_faculty_names'
,
'course_faculty_names'
,
...
@@ -153,6 +155,23 @@ class CourseDateDecorator implements Decorator
...
@@ -153,6 +155,23 @@ class CourseDateDecorator implements Decorator
$result
[
$index
]
=
$course_date
->
course
->
getFullName
();
$result
[
$index
]
=
$course_date
->
course
->
getFullName
();
}
}
}
}
if
(
in_array
(
'course_sem_type_id'
,
$this
->
enabled_decorated_fields
))
{
if
(
$course_date
->
course
instanceof
\Course
)
{
$index
=
$field
.
'_course_sem_type_id'
;
$result
[
$index
]
=
$course_date
->
course
->
status
;
}
}
if
(
in_array
(
'course_sem_type_name'
,
$this
->
enabled_decorated_fields
))
{
if
(
$course_date
->
course
instanceof
\Course
)
{
$sem_type
=
$course_date
->
course
->
getSemType
();
$index
=
$field
.
'_course_sem_type_name'
;
if
(
$sem_type
instanceof
\SemType
)
{
$result
[
$index
]
=
$sem_type
[
'name'
];
}
else
{
$result
[
$index
]
=
''
;
}
}
}
if
(
in_array
(
'lecturer_names'
,
$this
->
enabled_decorated_fields
))
{
if
(
in_array
(
'lecturer_names'
,
$this
->
enabled_decorated_fields
))
{
$lecturer_names
=
[];
$lecturer_names
=
[];
if
(
$course_date
->
dozenten
)
{
if
(
$course_date
->
dozenten
)
{
...
...
This diff is collapsed.
Click to expand it.
plugin.manifest
+
1
−
1
View file @
14f887da
pluginname=Flexexport
pluginname=Flexexport
pluginclassname=Flexexport
pluginclassname=Flexexport
origin=data-quest
origin=data-quest
version=0.6.
7
version=0.6.
8
studipMinVersion=4.3
studipMinVersion=4.3
studipMaxVersion=4.9.99
studipMaxVersion=4.9.99
description=Das Flexexport-Plugin erlaubt den Export von Stud.IP-Inhalten in verschiedenen Formaten.
description=Das Flexexport-Plugin erlaubt den Export von Stud.IP-Inhalten in verschiedenen Formaten.
This diff is collapsed.
Click to expand it.
templates/decorators/course_date_decorator.php
+
14
−
0
View file @
14f887da
...
@@ -68,6 +68,20 @@
...
@@ -68,6 +68,20 @@
<?=
dgettext
(
'Flexexport'
,
'Vollständiger Name der Veranstaltung'
)
?>
<?=
dgettext
(
'Flexexport'
,
'Vollständiger Name der Veranstaltung'
)
?>
<span
class=
"field-hint"
>
_course_full_name
</span>
<span
class=
"field-hint"
>
_course_full_name
</span>
</label>
</label>
<label>
<input
type=
"checkbox"
value=
"course_sem_type_id"
name=
"
<?=
htmlReady
(
$config_prefix
?:
'CONFIG_PREFIX'
)
?>
[enabled_decorated_fields][]"
<?=
in_array
(
'course_sem_type_id'
,
$enabled_decorated_fields
)
?
'checked="checked"'
:
''
?>
>
<?=
dgettext
(
'Flexexport'
,
'ID des Veranstaltungstyps'
)
?>
<span
class=
"field-hint"
>
_course_sem_type_id
</span>
</label>
<label>
<input
type=
"checkbox"
value=
"course_sem_type_name"
name=
"
<?=
htmlReady
(
$config_prefix
?:
'CONFIG_PREFIX'
)
?>
[enabled_decorated_fields][]"
<?=
in_array
(
'course_sem_type_name'
,
$enabled_decorated_fields
)
?
'checked="checked"'
:
''
?>
>
<?=
dgettext
(
'Flexexport'
,
'Name des Veranstaltungstyps'
)
?>
<span
class=
"field-hint"
>
_course_sem_type_name
</span>
</label>
<label>
<label>
<input
type=
"checkbox"
value=
"course_institute_names"
<input
type=
"checkbox"
value=
"course_institute_names"
name=
"
<?=
htmlReady
(
$config_prefix
?:
'CONFIG_PREFIX'
)
?>
[enabled_decorated_fields][]"
name=
"
<?=
htmlReady
(
$config_prefix
?:
'CONFIG_PREFIX'
)
?>
[enabled_decorated_fields][]"
...
...
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