diff --git a/src/mongo/Config.class.php b/src/mongo/Config.class.php index 8ae9f988..62ecd5c7 100644 --- a/src/mongo/Config.class.php +++ b/src/mongo/Config.class.php @@ -16,7 +16,7 @@ /** * Holds the global configuration for Tripod */ -class Config implements ITripodConfigSerializer +class Config implements IConfigInstance { /** @@ -1131,7 +1131,7 @@ public static function getConfig() /** * Returns a list of the configured indexes grouped by collection * @param string $storeName - * @return mixed + * @return array */ public function getIndexesGroupedByCollection($storeName) { @@ -1189,7 +1189,8 @@ public function getIndexesGroupedByCollection($storeName) * @param string $storeName The database name to use. * @param string $collName The collection in the database. * @param string $qName Either the qname to get the values for or empty for all cardinality values. - * @return mixed If no qname is specified then returns an array of cardinality options, otherwise returns the cardinality value for the given qname. + * @return array|int If no qname is specified then returns an array of cardinality options, + * otherwise returns the cardinality value for the given qname. */ public function getCardinality($storeName,$collName,$qName=null) { diff --git a/src/mongo/IConfigInstance.php b/src/mongo/IConfigInstance.php new file mode 100644 index 00000000..8ad37ed2 --- /dev/null +++ b/src/mongo/IConfigInstance.php @@ -0,0 +1,308 @@ +