ILIAS  release_7 Revision v7.30-3-g800a261c036
ilDclTableViewBaseDefaultValue Class Reference

Class ilDclTableViewBaseDefaultValue. More...

+ Inheritance diagram for ilDclTableViewBaseDefaultValue:
+ Collaboration diagram for ilDclTableViewBaseDefaultValue:

Static Public Member Functions

static findSingle ($data_type_id, $tview_id)
 
static findAll ($data_type_id, $tview_id)
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField ($old_name, $new_name)
 
static tableExists ()
 
static fieldExists ($field_name)
 
static removeDBField ($field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 
static preloadObjects ()
 
static additionalParams (array $additional_params)
 
static findOrFail ($primary_key, array $add_constructor_args=array())
 Tries to find the object and throws an Exception if object is not found, instead of returning null. More...
 
static findOrGetInstance ($primary_key, array $add_constructor_args=array())
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static orderBy ($orderBy, $orderDirection='ASC')
 
static dateFormat ($date_format='d.m.Y - H:i:s')
 
static limit ($start, $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $connector)
 
static raw ($set_raw=true)
 
static getArray ($key=null, $values=null)
 
static _toCamelCase ($str, $capitalise_first_char=false)
 

Additional Inherited Members

- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 
 setConnectorContainerName ($connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0, arConnector $connector=null)
 
 storeObjectToCache ()
 
 __getConvertedDateFieldsAsArray ($format=null)
 
 __asCsv ($separator=';', $header=false)
 
 __asArray ()
 
 __asStdClass ()
 
 __asSerializedObject ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForDb ()
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy ($new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 
- Data Fields inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 
- Protected Member Functions inherited from ActiveRecord
 serializeToCSV ($field)
 This method is called for every field of your instance if you use __asCsv. More...
 
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 
static fromCamelCase ($str)
 
- Protected Attributes inherited from ActiveRecord
 $ar_safe_read = true
 
 $connector_container_name = ''
 

Detailed Description

Member Function Documentation

◆ findAll()

static ilDclTableViewBaseDefaultValue::findAll (   $data_type_id,
  $tview_id 
)
static

Definition at line 32 of file class.ilDclTableViewBaseDefaultValue.php.

32 {
33 $storage_location = ilDclCache::getDatatype($data_type_id)->getStorageLocation();
34 if (is_null($storage_location) || $storage_location == 0) {
35 return null;
36 }
37
38 try {
40 return $class::getCollection()->where(array("tview_set_id" => $tview_id))->get();
41 } catch (Exception $ex) {
42 return null;
43 }
44 }
static getDatatype($datatyp_id)
Get cached datatypes.

References ilDclCache\getDatatype(), and ilDclDefaultValueFactory\STORAGE_LOCATION_MAPPING.

+ Here is the call graph for this function:

◆ findSingle()

static ilDclTableViewBaseDefaultValue::findSingle (   $data_type_id,
  $tview_id 
)
static
Parameters
$data_type_id
$tview_id
Returns
ilDclTableViewBaseDefaultValue
Exceptions
ilDclException

Definition at line 17 of file class.ilDclTableViewBaseDefaultValue.php.

17 {
18 $storage_location = ilDclCache::getDatatype($data_type_id)->getStorageLocation();
19 if (is_null($storage_location) || $storage_location == 0) {
20 return null;
21 }
22
23 try {
25 return $class::getCollection()->where(array("tview_set_id" => $tview_id))->first();
26 } catch (Exception $ex) {
27 return null;
28 }
29 }

References ilDclCache\getDatatype(), and ilDclDefaultValueFactory\STORAGE_LOCATION_MAPPING.

Referenced by ilDclTableView\cloneStructure(), ilDclRecordEditGUI\initForm(), and ilDclRecordEditGUI\save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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