ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDclTableFieldSetting Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ 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 ()
 Return the Name of your Connector Table More...
 
 setConnectorContainerName (string $connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $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 ()
 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 ()
 never use in ILIAS Core, Plugins only More...
 
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, array $fields=array(' *'), string $operator='=', $both_external=false)
 
static innerjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static leftjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static orderBy ($orderBy, string $orderDirection='ASC')
 
static dateFormat (string $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 (bool $set_raw=true)
 
static getArray (?string $key=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 ()
 Returns an instance of the instatiated calling active record (needs to be done in static methods) : This should be cached somehow More...
 
static fromCamelCase (string $str)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

Member Function Documentation

◆ getField()

ilDclTableFieldSetting::getField ( )

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

References $field.

91  : string
92  {
93  return $this->field;
94  }

◆ getFieldOrder()

ilDclTableFieldSetting::getFieldOrder ( )

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

References $field_order.

101  : int
102  {
103  return $this->field_order;
104  }

◆ getId()

ilDclTableFieldSetting::getId ( )

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

References $id.

71  : int
72  {
73  return $this->id;
74  }

◆ getInstance()

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

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

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

124  : ActiveRecord
125  {
126  $setting = self::where(array('table_id' => $table_id, 'field' => $field))->first();
127  if (!$setting) {
128  $setting = new self();
129  $setting->setField($field);
130  $setting->setTableId($table_id);
131  }
132 
133  return $setting;
134  }
+ Here is the caller graph for this function:

◆ getTableId()

ilDclTableFieldSetting::getTableId ( )

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

References $table_id.

81  : int
82  {
83  return $this->table_id;
84  }

◆ isExportable()

ilDclTableFieldSetting::isExportable ( )

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

References $exportable.

111  : bool
112  {
113  return $this->exportable;
114  }

◆ returnDbTableName()

static ilDclTableFieldSetting::returnDbTableName ( )
static

Return the Name of your Database Table

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

66  : string
67  {
68  return "il_dcl_tfield_set";
69  }

◆ setExportable()

ilDclTableFieldSetting::setExportable ( bool  $exportable)

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

References $exportable.

116  : void
117  {
118  $this->exportable = $exportable;
119  }

◆ setField()

ilDclTableFieldSetting::setField ( string  $field)

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

References $field.

96  : void
97  {
98  $this->field = $field;
99  }

◆ setFieldOrder()

ilDclTableFieldSetting::setFieldOrder ( int  $field_order)

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

References $field_order.

106  : void
107  {
108  $this->field_order = $field_order;
109  }

◆ setId()

ilDclTableFieldSetting::setId ( int  $id)

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

References $id.

76  : void
77  {
78  $this->id = $id;
79  }

◆ setTableId()

ilDclTableFieldSetting::setTableId ( int  $table_id)

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

References $table_id.

86  : void
87  {
88  $this->table_id = $table_id;
89  }

Field Documentation

◆ $exportable

bool ilDclTableFieldSetting::$exportable = false
protected

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

Referenced by isExportable(), and setExportable().

◆ $field

string ilDclTableFieldSetting::$field
protected

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

Referenced by getField(), and setField().

◆ $field_order

int ilDclTableFieldSetting::$field_order = 0
protected

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

Referenced by getFieldOrder(), and setFieldOrder().

◆ $id

int ilDclTableFieldSetting::$id
protected

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

Referenced by getId(), and setId().

◆ $table_id

int ilDclTableFieldSetting::$table_id
protected

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

Referenced by getTableId(), and setTableId().


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