Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Technical Site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
edugain
eduGAIN OT
eduGAIN Technical Site
Commits
c6548654
Commit
c6548654
authored
2 years ago
by
Tomasz Wolniewicz
Browse files
Options
Downloads
Patches
Plain Diff
an innitial implementation of the CSV dump of federations - to be polished
parent
72abd159
No related branches found
No related tags found
3 merge requests
!3
Align master branch with twoln-dev
,
!2
Synchronising towards version 2.5
,
!1
Twoln dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/API.php
+12
-1
12 additions, 1 deletion
lib/API.php
with
12 additions
and
1 deletion
lib/API.php
+
12
−
1
View file @
c6548654
...
...
@@ -454,7 +454,7 @@ class API {
private
function
action_list_feds
()
{
$this
->
description
([
'header'
=>
"List federation details (code, name, contact email, registration authority string, status)."
,
'supportedFormats'
=>
[
'json'
,
'print_r'
],
'supportedFormats'
=>
[
'json'
,
'csv'
,
'print_r'
],
'arguments'
=>
[
[
'arg'
=>
'opt'
,
...
...
@@ -487,6 +487,17 @@ class API {
$edugain
=
new
eduGAIN
(
$this
->
opts
[
'opt'
]);
$F
=
$edugain
->
FEDS
;
ksort
(
$F
,
SORT_STRING
|
SORT_FLAG_CASE
);
if
(
$this
->
format
==
'csv'
)
{
$out
=
''
;
foreach
(
$F
as
$fed
=>
$A
)
{
$ln
=
$fed
.
"
\t
"
.
implode
(
"
\t
"
,
$A
)
.
"
\n
"
;
$out
.
=
$ln
;
}
return
(
$out
);
}
foreach
(
$F
as
$fed
=>
$A
)
{
$out
[
$fed
]
=
[
'name'
=>
$A
[
'name'
],
'email'
=>
$A
[
'contact_email'
],
...
...
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