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

Public Member Functions

 getId ()
 
 setId (int $id)
 
 getTableId ()
 
 setTableId (int $table_id)
 
 getField ()
 
 setField (string $field)
 
 getFieldOrder ()
 
 setFieldOrder (int $field_order)
 
 isExportable ()
 
 setExportable (bool $exportable)
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 @description Return the Name of your Connector Table More...
 
 setConnectorContainerName (string $connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct (mixed $primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 asArray ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, string $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy (int $new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static returnDbTableName ()
 @description Return the Name of your Database Table More...
 
static getInstance (int $table_id, string $field)
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField (string $old_name, string $new_name)
 
static tableExists ()
 
static fieldExists (string $field_name)
 
static removeDBField (string $field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 @depracated never use in ILIAS Core, Plugins only More...
 
static preloadObjects ()
 
static additionalParams (array $additional_params)
 
static findOrFail ($primary_key, array $add_constructor_args=[])
 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=[])
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $activeRecord, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static innerjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static leftjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static orderBy (string $orderBy, string $orderDirection='ASC')
 
static dateFormat (string $date_format='d.m.Y - H:i:s')
 
static limit (int $start, int $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $arConnector)
 
static raw (bool $set_raw=true)
 
static getArray (?string $key=null, string|array|null $values=null)
 
static _toCamelCase (string $str, bool $capitalise_first_char=false)
 

Protected Attributes

int $id
 
int $table_id
 
string $field
 
int $field_order = 0
 
bool $exportable = false
 
- Protected Attributes inherited from ActiveRecord
bool $ar_safe_read = true
 
string $connector_container_name = ''
 
bool $is_new = true
 

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 @description Returns an instance of the instatiated calling active record (needs to be done in static methods) @TODO : This should be cached somehow More...
 
static fromCamelCase (string $str)
 

Detailed Description

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

Member Function Documentation

◆ getField()

ilDclTableFieldSetting::getField ( )

Definition at line 93 of file class.ilDclTableFieldSetting.php.

93 : string
94 {
95 return $this->field;
96 }

References $field.

◆ getFieldOrder()

ilDclTableFieldSetting::getFieldOrder ( )

Definition at line 103 of file class.ilDclTableFieldSetting.php.

103 : int
104 {
105 return $this->field_order;
106 }

References $field_order.

◆ getId()

ilDclTableFieldSetting::getId ( )

Definition at line 73 of file class.ilDclTableFieldSetting.php.

73 : int
74 {
75 return $this->id;
76 }

References $id.

◆ getInstance()

static ilDclTableFieldSetting::getInstance ( int  $table_id,
string  $field 
)
static
Returns
ActiveRecord|ilDclTableFieldSetting

Definition at line 126 of file class.ilDclTableFieldSetting.php.

127 {
128 $setting = self::where(['table_id' => $table_id, 'field' => $field])->first();
129 if (!$setting) {
130 $setting = new self();
131 $setting->setField($field);
132 $setting->setTableId($table_id);
133 }
134
135 return $setting;
136 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static where($where, $operator=null)

References $field, $table_id, and ActiveRecord\where().

Referenced by ilDclBaseFieldModel\doDelete(), ilDclBaseFieldModel\loadTableFieldSetting(), and ilDclBaseFieldModel\updateTableFieldSetting().

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

◆ getTableId()

ilDclTableFieldSetting::getTableId ( )

Definition at line 83 of file class.ilDclTableFieldSetting.php.

83 : int
84 {
85 return $this->table_id;
86 }

References $table_id.

◆ isExportable()

ilDclTableFieldSetting::isExportable ( )

Definition at line 113 of file class.ilDclTableFieldSetting.php.

113 : bool
114 {
115 return $this->exportable;
116 }

References $exportable.

◆ returnDbTableName()

static ilDclTableFieldSetting::returnDbTableName ( )
static

@description Return the Name of your Database Table

Reimplemented from ActiveRecord.

Definition at line 68 of file class.ilDclTableFieldSetting.php.

68 : string
69 {
70 return "il_dcl_tfield_set";
71 }

◆ setExportable()

ilDclTableFieldSetting::setExportable ( bool  $exportable)

Definition at line 118 of file class.ilDclTableFieldSetting.php.

118 : void
119 {
120 $this->exportable = $exportable;
121 }

References $exportable.

◆ setField()

ilDclTableFieldSetting::setField ( string  $field)

Definition at line 98 of file class.ilDclTableFieldSetting.php.

98 : void
99 {
100 $this->field = $field;
101 }

References $field.

◆ setFieldOrder()

ilDclTableFieldSetting::setFieldOrder ( int  $field_order)

Definition at line 108 of file class.ilDclTableFieldSetting.php.

108 : void
109 {
110 $this->field_order = $field_order;
111 }

References $field_order.

◆ setId()

ilDclTableFieldSetting::setId ( int  $id)

Definition at line 78 of file class.ilDclTableFieldSetting.php.

78 : void
79 {
80 $this->id = $id;
81 }

References $id.

◆ setTableId()

ilDclTableFieldSetting::setTableId ( int  $table_id)

Definition at line 88 of file class.ilDclTableFieldSetting.php.

88 : void
89 {
90 $this->table_id = $table_id;
91 }

References $table_id.

Field Documentation

◆ $exportable

bool ilDclTableFieldSetting::$exportable = false
protected

Definition at line 63 of file class.ilDclTableFieldSetting.php.

Referenced by isExportable(), and setExportable().

◆ $field

string ilDclTableFieldSetting::$field
protected

Definition at line 49 of file class.ilDclTableFieldSetting.php.

Referenced by getField(), getInstance(), and setField().

◆ $field_order

int ilDclTableFieldSetting::$field_order = 0
protected

Definition at line 56 of file class.ilDclTableFieldSetting.php.

Referenced by getFieldOrder(), and setFieldOrder().

◆ $id

int ilDclTableFieldSetting::$id
protected

Definition at line 33 of file class.ilDclTableFieldSetting.php.

Referenced by getId(), and setId().

◆ $table_id

int ilDclTableFieldSetting::$table_id
protected

Definition at line 41 of file class.ilDclTableFieldSetting.php.

Referenced by getInstance(), getTableId(), and setTableId().


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