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
dc926d2e
Commit
dc926d2e
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Fix phpdoc comments for SimpleSAML_Metadata_MetaDataStorageHandlerMDX.
parent
d77e3b2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
+10
-6
10 additions, 6 deletions
lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
with
10 additions
and
6 deletions
lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
+
10
−
6
View file @
dc926d2e
...
@@ -44,12 +44,13 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
...
@@ -44,12 +44,13 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
* hours (86400 seconds).
* hours (86400 seconds).
*
*
* @param array $config The configuration for this instance of the XML metadata source.
* @param array $config The configuration for this instance of the XML metadata source.
* @throws Exception If no server option can be found in the configuration.
*/
*/
protected
function
__construct
(
$config
)
{
protected
function
__construct
(
$config
)
{
assert
(
'is_array($config)'
);
assert
(
'is_array($config)'
);
if
(
!
array_key_exists
(
'server'
,
$config
)){
if
(
!
array_key_exists
(
'server'
,
$config
)){
throw
new
Exception
(
'Error, t
he
$
server
parameter of the config ha
s not
been
set
!'
);
throw
new
Exception
(
"T
he
'
server
' configuration option i
s not set
."
);
}
else
{
}
else
{
$this
->
server
=
$config
[
'server'
];
$this
->
server
=
$config
[
'server'
];
}
}
...
@@ -80,8 +81,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
...
@@ -80,8 +81,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
* This function returns an associative array with metadata for all entities in the given set. The
* This function returns an associative array with metadata for all entities in the given set. The
* key of the array is the entity id.
* key of the array is the entity id.
*
*
* @param $set
The set we want to list metadata for.
* @param
string
$set The set we want to list metadata for.
* @return An associative array with all entities in the given set.
* @return
array
An associative array with all entities in the given set.
*/
*/
public
function
getMetadataSet
(
$set
)
{
public
function
getMetadataSet
(
$set
)
{
...
@@ -113,6 +114,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
...
@@ -113,6 +114,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
* @param string $entityId The entity id of this entity.
* @param string $entityId The entity id of this entity.
* @return array|NULL The associative array with the metadata for this entity, or NULL
* @return array|NULL The associative array with the metadata for this entity, or NULL
* if the entity could not be found.
* if the entity could not be found.
* @throws Exception If an error occurs while loading metadata from cache.
*/
*/
private
function
getFromCache
(
$set
,
$entityId
)
{
private
function
getFromCache
(
$set
,
$entityId
)
{
assert
(
'is_string($set)'
);
assert
(
'is_string($set)'
);
...
@@ -163,6 +165,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
...
@@ -163,6 +165,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
* @param string $set The metadata set this entity belongs to.
* @param string $set The metadata set this entity belongs to.
* @param string $entityId The entity id of this entity.
* @param string $entityId The entity id of this entity.
* @param array $data The associative array with the metadata for this entity.
* @param array $data The associative array with the metadata for this entity.
* @throws Exception If metadata cannot be written to cache.
*/
*/
private
function
writeToCache
(
$set
,
$entityId
,
$data
)
{
private
function
writeToCache
(
$set
,
$entityId
,
$data
)
{
assert
(
'is_string($set)'
);
assert
(
'is_string($set)'
);
...
@@ -222,10 +225,11 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
...
@@ -222,10 +225,11 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
* override this function if it doesn't implement the getMetadataSet function, or if the
* override this function if it doesn't implement the getMetadataSet function, or if the
* implementation of getMetadataSet is slow.
* implementation of getMetadataSet is slow.
*
*
* @param $index
The entityId or metaindex we are looking up.
* @param
string
$index The entityId or metaindex we are looking up.
* @param $set
The set we are looking for metadata in.
* @param
string
$set The set we are looking for metadata in.
* @return An associative array with metadata for the given entity, or NULL if we are unable to
* @return
array
An associative array with metadata for the given entity, or NULL if we are unable to
* locate the entity.
* locate the entity.
* @throws Exception If an error occurs while downloading metadata, validating the signature or writing to cache.
*/
*/
public
function
getMetaData
(
$index
,
$set
)
{
public
function
getMetaData
(
$index
,
$set
)
{
assert
(
'is_string($index)'
);
assert
(
'is_string($index)'
);
...
...
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