From 521d3528feee0e1003cf47903847bd8089f307e0 Mon Sep 17 00:00:00 2001 From: Fabian Schmid Date: Mon, 23 Feb 2015 14:17:33 +0100 Subject: [PATCH] Adding come comments (github test) --- .../classes/class.ilDataCollectionCache.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Modules/DataCollection/classes/class.ilDataCollectionCache.php b/Modules/DataCollection/classes/class.ilDataCollectionCache.php index 0fd32a34e4c6..d32a5bf4992d 100644 --- a/Modules/DataCollection/classes/class.ilDataCollectionCache.php +++ b/Modules/DataCollection/classes/class.ilDataCollectionCache.php @@ -28,6 +28,12 @@ class ilDataCollectionCache{ */ protected static $record_field_cache; + + /** + * @param int $table_id + * + * @return ilDataCollectionTable + */ public static function getTableCache($table_id = 0){ $tables_cache = &self::$tables_cache; if(!isset($tables_cache[$table_id])) @@ -35,6 +41,12 @@ public static function getTableCache($table_id = 0){ return $tables_cache[$table_id]; } + + /** + * @param int $field_id + * + * @return ilDataCollectionField + */ public static function getFieldCache($field_id = 0){ $fields_cache = &self::$fields_cache; if(!isset($fields_cache[$field_id])) @@ -42,6 +54,12 @@ public static function getFieldCache($field_id = 0){ return $fields_cache[$field_id]; } + + /** + * @param int $record_id + * + * @return ilDataCollectionRecord + */ public static function getRecordCache($record_id = 0){ $records_cache = &self::$records_cache; if(!isset($records_cache[$record_id]))