Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
e822d844
Commit
e822d844
authored
6 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for modules/portal
parent
97d50e54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/portal/hooks/hook_htmlinject.php
+1
-0
1 addition, 0 deletions
modules/portal/hooks/hook_htmlinject.php
modules/portal/lib/Portal.php
+29
-0
29 additions, 0 deletions
modules/portal/lib/Portal.php
with
30 additions
and
0 deletions
modules/portal/hooks/hook_htmlinject.php
+
1
−
0
View file @
e822d844
...
...
@@ -4,6 +4,7 @@
* Hook to inject HTML content into all pages...
*
* @param array &$hookinfo hookinfo
* @return void
*/
function
portal_hook_htmlinject
(
&
$hookinfo
)
{
...
...
This diff is collapsed.
Click to expand it.
modules/portal/lib/Portal.php
+
29
−
0
View file @
e822d844
...
...
@@ -4,15 +4,28 @@ namespace SimpleSAML\Module\portal;
class
Portal
{
/** @var array */
private
$pages
;
/** @var array|null */
private
$config
;
/**
* @param array $pages
* @param array|null $config
*/
public
function
__construct
(
$pages
,
$config
=
null
)
{
$this
->
pages
=
$pages
;
$this
->
config
=
$config
;
}
/**
* @param string $thispage
* @return array|null
*/
public
function
getTabset
(
$thispage
)
{
if
(
!
isset
(
$this
->
config
))
{
...
...
@@ -26,6 +39,11 @@ class Portal
return
null
;
}
/**
* @param string $thispage
* @return bool
*/
public
function
isPortalized
(
$thispage
)
{
foreach
(
$this
->
config
as
$set
)
{
...
...
@@ -36,6 +54,12 @@ class Portal
return
false
;
}
/**
* @param \SimpleSAML\Locate\Translate $translator
* @param string $thispage
* @return array
*/
public
function
getLoginInfo
(
$translator
,
$thispage
)
{
$info
=
[
'info'
=>
''
,
'translator'
=>
$translator
,
'thispage'
=>
$thispage
];
...
...
@@ -43,6 +67,11 @@ class Portal
return
$info
[
'info'
];
}
/**
* @param string
* @return string
*/
public
function
getMenu
(
$thispage
)
{
$config
=
\SimpleSAML\Configuration
::
getInstance
();
...
...
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