ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDclDefaultValueFactory Class Reference
+ Collaboration diagram for ilDclDefaultValueFactory:

Public Member Functions

 create (int $data_type_id)
 
 createByTableName (string $table_name)
 

Data Fields

const STORAGE_LOCATION_MAPPING
 

Detailed Description

Definition at line 21 of file class.ilDclDefaultValueFactory.php.

Member Function Documentation

◆ create()

ilDclDefaultValueFactory::create ( int  $data_type_id)

Definition at line 29 of file class.ilDclDefaultValueFactory.php.

30 {
31 $storage_location = ilDclCache::getDatatype($data_type_id)->getStorageLocation();
32 $class = self::STORAGE_LOCATION_MAPPING[$storage_location];
33 return new $class();
34 }
static getDatatype(int $datatyp_id)
Get cached datatypes.

References ilDclCache\getDatatype().

+ Here is the call graph for this function:

◆ createByTableName()

ilDclDefaultValueFactory::createByTableName ( string  $table_name)

Definition at line 36 of file class.ilDclDefaultValueFactory.php.

References ilDclTableViewDateDefaultValue\returnDbTableName(), ilDclTableViewNumberDefaultValue\returnDbTableName(), and ilDclTableViewTextDefaultValue\returnDbTableName().

+ Here is the call graph for this function:

Field Documentation

◆ STORAGE_LOCATION_MAPPING

const ilDclDefaultValueFactory::STORAGE_LOCATION_MAPPING
Initial value:
= [
1 => ilDclTableViewTextDefaultValue::class,
2 => ilDclTableViewNumberDefaultValue::class,
3 => ilDclTableViewDateDefaultValue::class
]

Definition at line 23 of file class.ilDclDefaultValueFactory.php.

Referenced by ilDclTableViewBaseDefaultValue\findAll().


The documentation for this class was generated from the following file: