Skip to content

Commit

Permalink
Adding come comments (github test)
Browse files Browse the repository at this point in the history
  • Loading branch information
chfsx committed Feb 23, 2015
1 parent e1f3d1b commit 521d352
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Modules/DataCollection/classes/class.ilDataCollectionCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,38 @@ 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]))
$tables_cache[$table_id] = new ilDataCollectionTable($table_id);
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]))
$fields_cache[$field_id] = new ilDataCollectionField($field_id);
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]))
Expand Down

0 comments on commit 521d352

Please sign in to comment.