From 6fdeac52197f9f5c34b1d553f7d8ce0e8695a976 Mon Sep 17 00:00:00 2001 From: Tyler Antonio <contact@tanton.io> Date: Thu, 2 Apr 2015 15:09:43 -0600 Subject: [PATCH] Added more comments --- .../Metadata/MetaDataStorageHandlerPdo.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php b/lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php index aa6c532f4..894d66384 100644 --- a/lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php +++ b/lib/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php @@ -170,6 +170,15 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerPdo extends SimpleSAML_Metadata_ } } + /** + * Replace the -'s to an _ in table names for Metadata sets + * since SQL does not allow a - in a table name. + * + * @param string $index Entity ID + * @param string $set The set to add the metadata to + * @param array $entityData Metadata + * @return bool True/False if entry was sucessfully added + */ public function addEntry($index, $set, $entityData) { assert('is_string($index)'); assert('is_string($set)'); @@ -193,7 +202,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerPdo extends SimpleSAML_Metadata_ } /** - * Replace the -'s to an _ in table names since SQL does not allow a - in a table name. + * Replace the -'s to an _ in table names for Metadata sets + * since SQL does not allow a - in a table name. * * @param string $table Table * @return string Replaced table name -- GitLab