ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilDclDefaultValueFactory Class Reference
+ Collaboration diagram for ilDclDefaultValueFactory:

Public Member Functions

const 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()

const ilDclDefaultValueFactory::create ( int  $data_type_id)

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

References ilDclCache\getDatatype().

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.
+ Here is the call graph for this function:

◆ createByTableName()

ilDclDefaultValueFactory::createByTableName ( string  $table_name)

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

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

+ Here is the call graph for this function:

Field Documentation

◆ STORAGE_LOCATION_MAPPING

const ilDclDefaultValueFactory::STORAGE_LOCATION_MAPPING
Initial value:
= [
1 => ilDclTableViewTextDefaultValue::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: