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
448fa04f
Commit
448fa04f
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Fix data types in phpdoc.
parent
bce7737e
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/MetaDataStorageSource.php
+19
-15
19 additions, 15 deletions
lib/SimpleSAML/Metadata/MetaDataStorageSource.php
with
19 additions
and
15 deletions
lib/SimpleSAML/Metadata/MetaDataStorageSource.php
+
19
−
15
View file @
448fa04f
...
@@ -46,8 +46,12 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
...
@@ -46,8 +46,12 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
* The type of source is based on the 'type' parameter in the configuration.
* The type of source is based on the 'type' parameter in the configuration.
* The default type is 'flatfile'.
* The default type is 'flatfile'.
*
*
* @param $sourceConfig Associative array with the configuration for this metadata source.
* @param array $sourceConfig Associative array with the configuration for this metadata source.
* @return An instance of a metadata source with the given configuration.
* @return SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile|
* SimpleSAML_Metadata_MetaDataStorageHandlerXML|
* SimpleSAML_Metadata_MetaDataStorageHandlerSerialize|
* SimpleSAML_Metadata_MetaDataStorageHandlerMDX|
* SimpleSAML_Metadata_MetaDataStorageHandlerPdo An instance of a metadata source with the given configuration.
*/
*/
public
static
function
getSource
(
$sourceConfig
)
{
public
static
function
getSource
(
$sourceConfig
)
{
...
@@ -82,8 +86,8 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
...
@@ -82,8 +86,8 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
*
*
* A subclass should override this function if it is able to easily generate this list.
* A subclass should override this function if it is able to easily generate this list.
*
*
* @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, or an empty array if we are
* @return
array
An associative array with all entities in the given set, or an empty array if we are
* unable to generate this list.
* unable to generate this list.
*/
*/
public
function
getMetadataSet
(
$set
)
{
public
function
getMetadataSet
(
$set
)
{
...
@@ -98,11 +102,11 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
...
@@ -98,11 +102,11 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
* 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 $hostPath The host/path combination we are looking up.
* @param
string
$hostPath The host/path combination we are looking up.
* @param $set Which set of metadata we are looking it up in.
* @param
string
$set Which set of metadata we are looking it up in.
* @param $type Do you want to return the metaindex or the entityID. [entityid|metaindex]
* @param
string
$type Do you want to return the metaindex or the entityID. [entityid|metaindex]
* @return An entity id which matches the given host/path combination, or NULL if
* @return
array|null
An entity id which matches the given host/path combination, or NULL if
* we are unable to locate one which matches.
* we are unable to locate one which matches.
*/
*/
public
function
getEntityIdFromHostPath
(
$hostPath
,
$set
,
$type
=
'entityid'
)
{
public
function
getEntityIdFromHostPath
(
$hostPath
,
$set
,
$type
=
'entityid'
)
{
...
@@ -138,10 +142,10 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
...
@@ -138,10 +142,10 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
* This function returns the entityID for any of the entities that have an
* This function returns the entityID for any of the entities that have an
* IP range which the IP falls within.
* IP range which the IP falls within.
*
*
* @param $set Which set of metadata we are looking it up in.
* @param
string
$set Which set of metadata we are looking it up in.
* @param $ip IP address
* @param
string
$ip IP address
* @param $type Do you want to return the metaindex or the entityID. [entityid|metaindex]
* @param
string
$type Do you want to return the metaindex or the entityID. [entityid|metaindex]
* @return The entity id of a entity which have a CIDR hint where the provided
* @return
string
The entity id of a entity which have a CIDR hint where the provided
* IP address match.
* IP address match.
*/
*/
public
function
getPreferredEntityIdFromCIDRhint
(
$set
,
$ip
,
$type
=
'entityid'
)
{
public
function
getPreferredEntityIdFromCIDRhint
(
$set
,
$ip
,
$type
=
'entityid'
)
{
...
@@ -204,9 +208,9 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
...
@@ -204,9 +208,9 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource {
* 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.
*/
*/
public
function
getMetaData
(
$index
,
$set
)
{
public
function
getMetaData
(
$index
,
$set
)
{
...
...
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