ILIAS  release_8 Revision v8.24
ilDclStandardField 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 ilDclStandardField:
+ Collaboration diagram for ilDclStandardField:

Public Member Functions

 __construct ($a_id=0)
 
 doRead ()
 
 doCreate ()
 
 doUpdate ()
 
 clone (ilDclStandardField $original_record)
 
 getLocked ()
 
 isStandardField ()
 
 isUnique ()
 
 getRecordQuerySortObject (string $direction="asc", bool $sort_by_status=false)
 Returns a query-object for building the record-loader-sql-query. More...
 
 getRecordQueryFilterObject ( $filter_value="", ?ilDclBaseFieldModel $sort_field=null)
 Returns a query-object for building the record-loader-sql-query. More...
 
 getSortField ()
 Returns the sort-field id. More...
 
 hasNumericSorting ()
 Set to true, when the sorting should be handled numerical. More...
 
 allowFilterInListView ()
 
 fillHeaderExcel (ilExcel $worksheet, int &$row, int &$col)
 
 getValueFromExcel (ilExcel $excel, int $row, int $col)
 
 afterClone ($records)
 
- Public Member Functions inherited from ilDclBaseFieldModel
 __construct (int $a_id=0)
 
 setId ($a_id)
 Set field id. More...
 
 getId ()
 Get field id. More...
 
 setTableId (int $a_id)
 Set table id. More...
 
 getTableId ()
 Get table id. More...
 
 setTitle (string $a_title)
 Set title. More...
 
 getTitle ()
 Get title. More...
 
 setDescription (string $a_desc)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setDatatypeId (int $a_id)
 Set datatype id. More...
 
 getDatatypeId ()
 Get datatype_id. More...
 
 isUnique ()
 
 setUnique (?bool $unique)
 
 getDatatype ()
 
 getDatatypeTitle ()
 
 getPresentationTitle ()
 
 getPresentationDescription ()
 
 getStorageLocation ()
 Get storage location for the model. More...
 
 getExportable ()
 
 toArray ()
 
 isStandardField ()
 
 doRead ()
 
 buildFromDBRecord (array $rec)
 Builds model from db record. More...
 
 doCreate ()
 
 doUpdate ()
 
 updateProperties ()
 Update properties of this field in Database. More...
 
 doDelete ()
 Remove field and properties. More...
 
 getViewSettings ()
 
 getViewSetting (int $tableview_id)
 
 getOrder ()
 
 setOrder (string $order)
 
 hasProperty (string $key)
 Checks if a certain property for a field is set. More...
 
 getProperty (string $key)
 Returns a certain property of a field. More...
 
 getPropertyInstance (string $key)
 Return ActiveRecord of property. More...
 
 setProperty (string $key, $value)
 Set a property for a field (does not save) More...
 
 getValidFieldProperties ()
 Returns all valid properties for a field-type. More...
 
 checkValidityFromForm (ilPropertyFormGUI &$form, ?int $record_id=null)
 
 checkValidity ($value, ?int $record_id=null)
 Check if input is valid. More...
 
 cloneStructure (int $original_id)
 
 afterClone (array $records)
 
 cloneProperties (ilDclBaseFieldModel $originalField)
 
 setExportable (bool $exportable)
 
 allowFilterInListView ()
 
 getRecordQuerySortObject (string $direction="asc", bool $sort_by_status=false)
 Returns a query-object for building the record-loader-sql-query. More...
 
 getRecordQueryFilterObject ( $filter_value="", ?ilDclBaseFieldModel $sort_field=null)
 Returns a query-object for building the record-loader-sql-query. More...
 
 getSortField ()
 Returns the sort-field id. More...
 
 hasNumericSorting ()
 Set to true, when the sorting should be handled numerical. More...
 
 checkFieldCreationInput (ilPropertyFormGUI $form)
 Checks input of specific fields befor saving. More...
 
 getStorageLocationOverride ()
 
 setStorageLocationOverride (?int $storage_location_override)
 
 fillHeaderExcel (ilExcel $worksheet, int &$row, int &$col)
 
 checkTitlesForImport (array &$titles, array &$import_fields)
 
 storePropertiesFromForm (ilPropertyFormGUI $form)
 called when saving the 'edit field' form More...
 
 fillPropertiesForm (ilPropertyFormGUI &$form)
 called to fill the 'edit field' form More...
 
 isConfirmationRequired (ilPropertyFormGUI $form)
 called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI More...
 
 getConfirmationGUI (ilPropertyFormGUI $form)
 called by ilDclFieldEditGUI if isConfirmationRequired returns true More...
 

Static Public Member Functions

static _getStandardFieldsAsArray ()
 
static _getStandardFields (int $table_id)
 
static _getNonImportableStandardFieldTitles ()
 
static _getImportableStandardFieldTitle ()
 
static _isStandardField ($field_id)
 
static _getDatatypeForId (string $id)
 gives you the datatype id of a specified standard field. More...
 
- Static Public Member Functions inherited from ilDclBaseFieldModel
static _getTitleInvalidChars (bool $a_as_regex=true)
 All valid chars for filed titles. More...
 
static _getFieldIdByTitle (string $title, int $table_id)
 

Private Attributes

ilGlobalTemplateInterface $main_tpl
 

Additional Inherited Members

- Data Fields inherited from ilDclBaseFieldModel
const PROP_LENGTH = "lenght"
 General properties. More...
 
const PROP_REGEX = "regex"
 
const PROP_REFERENCE = "table_id"
 
const PROP_URL = "url"
 
const PROP_TEXTAREA = "text_area"
 
const PROP_REFERENCE_LINK = "reference_link"
 
const PROP_WIDTH = "width"
 
const PROP_HEIGHT = "height"
 
const PROP_LEARNING_PROGRESS = "learning_progress"
 
const PROP_ILIAS_REFERENCE_LINK = "ILIAS_reference_link"
 
const PROP_N_REFERENCE = "multiple_selection"
 
const PROP_FORMULA_EXPRESSION = "expression"
 
const PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu"
 
const PROP_LINK_DETAIL_PAGE_TEXT = "link_detail_page_text"
 
const PROP_LINK_DETAIL_PAGE_MOB = "link_detail_page_mob"
 
const PROP_SUPPORTED_FILE_TYPES = "supported_file_types"
 
const PROP_PLUGIN_HOOK_NAME = "plugin_hook_name"
 
const EDIT_VIEW = 2
 
const EXPORTABLE_VIEW = 4
 
- Protected Member Functions inherited from ilDclBaseFieldModel
 loadDatatype ()
 Load datatype for model. More...
 
 loadTableFieldSetting ()
 loadTableFieldSetting More...
 
 addToTableViews ()
 create ilDclTableViewFieldSettings for this field in each tableview More...
 
 updateTableFieldSetting ()
 update exportable and fieldorder More...
 
 loadProperties ()
 Get all properties of a field. More...
 
 normalizeValue ($value)
 
- Protected Attributes inherited from ilDclBaseFieldModel
string $id = ""
 
int $table_id = 0
 
string $title = ""
 
string $description = ""
 
int $datatypeId = 0
 
int $order = null
 
bool $unique = false
 
array $property = []
 
bool $exportable = false
 
ilDclDatatype $datatype = null
 
int $storage_location_override = null
 With this property the datatype-storage-location can be overwritten. More...
 
ilDBInterface $db
 
ilLanguage $lng
 

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.ilDclStandardField.php.

Constructor & Destructor Documentation

◆ __construct()

ilDclStandardField::__construct (   $a_id = 0)

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

24 {
26 global $DIC;
27 $this->main_tpl = $DIC->ui()->mainTemplate();
28 }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getDatatypeForId()

static ilDclStandardField::_getDatatypeForId ( string  $id)
static

gives you the datatype id of a specified standard field.

Parameters
string$idthe id of the standardfield eg. "create_date"

Definition at line 206 of file class.ilDclStandardField.php.

206 : ?string
207 {
208 $datatype = null;
209 foreach (self::_getStandardFieldsAsArray() as $fields_data) {
210 if ($id == $fields_data['id']) {
211 $datatype = $fields_data['datatype_id'];
212 break;
213 }
214 }
215
216 return $datatype;
217 }

References ilDclBaseFieldModel\$datatype, and ilDclBaseFieldModel\$id.

Referenced by ilDclBaseFieldModel\getDatatypeId(), and ilDclTableViewFieldSetting\getFieldObject().

+ Here is the caller graph for this function:

◆ _getImportableStandardFieldTitle()

static ilDclStandardField::_getImportableStandardFieldTitle ( )
static
Returns
array all possible titles of importable (excel import) standardfields (atm exclusively owner), in all languages;

Definition at line 165 of file class.ilDclStandardField.php.

165 : array
166 {
167 global $DIC;
168 $ilDB = $DIC['ilDB'];
169 $identifiers = '';
170 foreach (array('dcl_owner') as $id) {
171 $identifiers .= $ilDB->quote($id, 'text') . ',';
172 }
173 $identifiers = rtrim($identifiers, ',');
174 $sql = $ilDB->query(
175 'SELECT value, identifier FROM lng_data WHERE identifier IN ('
176 . $identifiers . ')'
177 );
178 $titles = array();
179 while ($rec = $ilDB->fetchAssoc($sql)) {
180 $titles[$rec['identifier']][] = $rec['value'];
181 }
182
183 return $titles;
184 }

References $DIC, ilDclBaseFieldModel\$id, and $ilDB.

Referenced by ilDclContentImporter\getImportFieldsFromTitles().

+ Here is the caller graph for this function:

◆ _getNonImportableStandardFieldTitles()

static ilDclStandardField::_getNonImportableStandardFieldTitles ( )
static
Returns
array all possible titles of non-importable (excel import) standardfields (atm all except owner), in all languages;

Definition at line 132 of file class.ilDclStandardField.php.

132 : array
133 {
134 global $DIC;
135 $ilDB = $DIC['ilDB'];
136 $identifiers = '';
137 foreach (
138 array(
139 'dcl_id',
140 'dcl_creation_date',
141 'dcl_last_update',
142 'dcl_last_edited_by',
143 'dcl_comments',
144 ) as $id
145 ) {
146 $identifiers .= $ilDB->quote($id, 'text') . ',';
147 }
148 $identifiers = rtrim($identifiers, ',');
149 $sql = $ilDB->query(
150 'SELECT value FROM lng_data WHERE identifier IN (' . $identifiers
151 . ')'
152 );
153 $titles = array();
154 while ($rec = $ilDB->fetchAssoc($sql)) {
155 $titles[] = $rec['value'];
156 }
157
158 return $titles;
159 }

References $DIC, ilDclBaseFieldModel\$id, and $ilDB.

Referenced by ilDclContentImporter\getImportFieldsFromTitles().

+ Here is the caller graph for this function:

◆ _getStandardFields()

static ilDclStandardField::_getStandardFields ( int  $table_id)
static

Definition at line 115 of file class.ilDclStandardField.php.

115 : array
116 {
117 $stdFields = array();
118 foreach (self::_getStandardFieldsAsArray() as $array) {
119 $array["table_id"] = $table_id;
120 $field = new ilDclStandardField();
121 $field->buildFromDBRecord($array);
122 $stdFields[] = $field;
123 }
124
125 return $stdFields;
126 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilDclBaseFieldModel\$table_id.

◆ _getStandardFieldsAsArray()

static ilDclStandardField::_getStandardFieldsAsArray ( )
static

Definition at line 67 of file class.ilDclStandardField.php.

67 : array
68 {
69
70 //TODO: this isn't particularly pretty especially as $lng is used in the model. On the long run the standard fields should be refactored into "normal" fields.
71 global $DIC;
72 $lng = $DIC->language();
73 $stdfields = [
74 [
75 "id" => "id",
76 "title" => $lng->txt("dcl_id"),
77 "description" => $lng->txt("dcl_id_description"),
79 ],
80 [
81 "id" => "create_date",
82 "title" => $lng->txt("dcl_creation_date"),
83 "description" => $lng->txt("dcl_creation_date_description"),
85 ],
86 [
87 "id" => "last_update",
88 "title" => $lng->txt("dcl_last_update"),
89 "description" => $lng->txt("dcl_last_update_description"),
91 ],
92 [
93 "id" => "owner",
94 "title" => $lng->txt("dcl_owner"),
95 "description" => $lng->txt("dcl_owner_description"),
96 "datatype_id" => ilDclDatatype::INPUTFORMAT_TEXT
97 ],
98 [
99 "id" => "last_edit_by",
100 "title" => $lng->txt("dcl_last_edited_by"),
101 "description" => $lng->txt("dcl_last_edited_by_description"),
102 "datatype_id" => ilDclDatatype::INPUTFORMAT_TEXT
103 ],
104 [
105 'id' => 'comments',
106 'title' => $lng->txt('dcl_comments'),
107 'description' => $lng->txt('dcl_comments_desc'),
108 'datatype_id' => ilDclDatatype::INPUTFORMAT_TEXT
109 ],
110 ];
111
112 return $stdfields;
113 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...

References $DIC, ilDclBaseFieldModel\$lng, ilDclDatatype\INPUTFORMAT_DATETIME, ilDclDatatype\INPUTFORMAT_NUMBER, ilDclDatatype\INPUTFORMAT_TEXT, and ilLanguage\txt().

+ Here is the call graph for this function:

◆ _isStandardField()

static ilDclStandardField::_isStandardField (   $field_id)
static

◆ afterClone()

ilDclStandardField::afterClone (   $records)
Parameters
$records

Definition at line 364 of file class.ilDclStandardField.php.

365 {
366 }

◆ allowFilterInListView()

ilDclStandardField::allowFilterInListView ( )

Reimplemented from ilDclBaseFieldModel.

Definition at line 329 of file class.ilDclStandardField.php.

329 : bool
330 {
331 //comments are filterable if they are enabled in the tables settings
332 return $this->id != 'comments'
333 || ilDclCache::getTableCache($this->getTableId())->getPublicCommentsEnabled();
334 }
static getTableCache(int $table_id=null)

References ilDclCache\getTableCache().

+ Here is the call graph for this function:

◆ clone()

ilDclStandardField::clone ( ilDclStandardField  $original_record)

Definition at line 53 of file class.ilDclStandardField.php.

53 : void
54 {
55 $this->setOrder($original_record->getOrder());
56 $this->setUnique($original_record->isUnique());
57 $this->setExportable($original_record->getExportable());
58
59 $this->doUpdate();
60 }

References doUpdate(), ilDclBaseFieldModel\getExportable(), ilDclBaseFieldModel\getOrder(), isUnique(), ilDclBaseFieldModel\setExportable(), ilDclBaseFieldModel\setOrder(), and ilDclBaseFieldModel\setUnique().

Referenced by ILIAS\UI\Implementation\Component\Table\PresentationRow\withAction(), ILIAS\UI\Implementation\Component\Table\Data\withActions(), ILIAS\UI\Implementation\Component\Table\Data\withAdditionalParameters(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withContent(), ILIAS\UI\Implementation\Component\Table\Presentation\withData(), ILIAS\UI\Implementation\Component\Table\DataRow\withDisabledAction(), ILIAS\UI\Implementation\Component\Table\Presentation\withEnvironment(), ILIAS\UI\Implementation\Component\Table\Data\withFilter(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withFurtherFields(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withFurtherFieldsHeadline(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withHeadline(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withImportantFields(), ILIAS\UI\Implementation\Component\Table\DataRowBuilder\withMultiActionsPresent(), ILIAS\UI\Implementation\Component\Table\Data\withNumberOfRows(), ILIAS\UI\Implementation\Component\Table\Data\withOrder(), ILIAS\UI\Implementation\Component\Table\Data\withRange(), ILIAS\UI\Implementation\Component\Table\Data\withRequest(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withResetSignals(), ILIAS\UI\Implementation\Component\Table\Presentation\withRowMapping(), ILIAS\UI\Implementation\Component\Table\Data\withSelectedOptionalColumns(), ILIAS\UI\Implementation\Component\Table\DataRowBuilder\withSingleActions(), ILIAS\UI\Implementation\Component\Table\PresentationRow\withSubheadline(), ILIAS\UI\Implementation\Component\Table\Table\withTitle(), and ILIAS\UI\Implementation\Component\Table\DataRowBuilder\withVisibleColumns().

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

◆ doCreate()

ilDclStandardField::doCreate ( )

Reimplemented from ilDclBaseFieldModel.

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

39 : void
40 {
41 global $DIC;
42 $ilLog = $DIC['ilLog'];
43 $message = "Standard fields cannot be written to DB";
44 $this->main_tpl->setOnScreenMessage('failure', $message);
45 $ilLog->write("[ilDclStandardField] " . $message);
46 }
$message
Definition: xapiexit.php:32

References $DIC, and $message.

◆ doRead()

ilDclStandardField::doRead ( )

Reimplemented from ilDclBaseFieldModel.

Definition at line 30 of file class.ilDclStandardField.php.

30 : void
31 {
32 global $DIC;
33 $ilLog = $DIC['ilLog'];
34 $message = "Standard fields cannot be read from DB";
35 $this->main_tpl->setOnScreenMessage('failure', $message);
36 $ilLog->write("[ilDclStandardField] " . $message);
37 }

References $DIC, and $message.

◆ doUpdate()

ilDclStandardField::doUpdate ( )

Reimplemented from ilDclBaseFieldModel.

Definition at line 48 of file class.ilDclStandardField.php.

48 : void
49 {
51 }
updateTableFieldSetting()
update exportable and fieldorder

References ilDclBaseFieldModel\updateTableFieldSetting().

Referenced by clone().

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

◆ fillHeaderExcel()

ilDclStandardField::fillHeaderExcel ( ilExcel  $worksheet,
int &  $row,
int &  $col 
)

Reimplemented from ilDclBaseFieldModel.

Definition at line 336 of file class.ilDclStandardField.php.

336 : void
337 {
338 parent::fillHeaderExcel($worksheet, $row, $col);
339 if ($this->getId() == 'owner') {
340 global $DIC;
341 $lng = $DIC['lng'];
342 $worksheet->setCell($row, $col, $lng->txt("dcl_owner_name"));
343 $col++;
344 }
345 }
setCell(int $a_row, int $a_col, $a_value, ?string $a_datatype=null)
Set cell value.

References $DIC, $lng, ILIAS\Survey\Mode\getId(), and ilExcel\setCell().

+ Here is the call graph for this function:

◆ getLocked()

ilDclStandardField::getLocked ( )

Definition at line 62 of file class.ilDclStandardField.php.

62 : bool
63 {
64 return true;
65 }

◆ getRecordQueryFilterObject()

ilDclStandardField::getRecordQueryFilterObject (   $filter_value = "",
?ilDclBaseFieldModel  $sort_field = null 
)

Returns a query-object for building the record-loader-sql-query.

Reimplemented from ilDclBaseFieldModel.

Definition at line 259 of file class.ilDclStandardField.php.

263 global $DIC;
264 $ilDB = $DIC['ilDB'];
265
266 $where_additions = "";
267 $join_str = "";
269 $join_str = "INNER JOIN usr_data AS filter_usr_data_{$this->getId()} ON (filter_usr_data_{$this->getId()}.usr_id = record.{$this->getId()} AND filter_usr_data_{$this->getId()}.login LIKE "
270 . $ilDB->quote("%$filter_value%", 'text') . ") ";
271 } else {
273 $from = (isset($filter_value['from'])) ? $filter_value['from'] : null;
274 $to = (isset($filter_value['to'])) ? $filter_value['to'] : null;
275 if (is_numeric($from)) {
276 $where_additions .= " AND record.{$this->getId()} >= "
277 . $ilDB->quote($from, 'integer');
278 }
279 if (is_numeric($to)) {
280 $where_additions .= " AND record.{$this->getId()} <= "
281 . $ilDB->quote($to, 'integer');
282 }
283 } else {
285 $date_from = (isset($filter_value['from'])
286 && is_object($filter_value['from'])) ? $filter_value['from'] : null;
287 $date_to = (isset($filter_value['to'])
288 && is_object($filter_value['to'])) ? $filter_value['to'] : null;
289
290 // db->quote(.. date) at some point invokes ilDate->_toString, which adds a <br /> to the string,
291 // that's why strip_tags is used
292 if ($date_from) {
293 $where_additions .= " AND (record.{$this->getId()} >= "
294 . strip_tags($ilDB->quote($date_from, 'date')) . ")";
295 }
296 if ($date_to) {
297 $where_additions .= " AND (record.{$this->getId()} <= "
298 . strip_tags($ilDB->quote($date_to, 'date')) . ")";
299 }
300 }
301 }
302 }
303
304 $sql_obj = new ilDclRecordQueryObject();
305 $sql_obj->setJoinStatement($join_str);
306 $sql_obj->setWhereStatement($where_additions);
307
308 return $sql_obj;
309 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $ilDB.

◆ getRecordQuerySortObject()

ilDclStandardField::getRecordQuerySortObject ( string  $direction = "asc",
bool  $sort_by_status = false 
)

Returns a query-object for building the record-loader-sql-query.

Reimplemented from ilDclBaseFieldModel.

Definition at line 232 of file class.ilDclStandardField.php.

236 $sql_obj = new ilDclRecordQueryObject();
237
238 $join_str = "";
239 if ($this->getId() == 'owner' || $this->getId() == 'last_edit_by') {
240 $join_str = "LEFT JOIN usr_data AS sort_usr_data_{$this->getId()} ON (sort_usr_data_{$this->getId()}.usr_id = record.{$this->getId()})";
241 $select_str = " sort_usr_data_{$this->getId()}.login AS field_{$this->getId()},";
242 } else {
243 $select_str = " record.{$this->getId()} AS field_{$this->getId()},";
244 }
245
246 $sql_obj->setSelectStatement($select_str);
247 $sql_obj->setJoinStatement($join_str);
248
249 if ($this->getId() !== "comments") {
250 $sql_obj->setOrderStatement("field_{$this->getId()} " . $direction);
251 }
252
253 return $sql_obj;
254 }

◆ getSortField()

ilDclStandardField::getSortField ( )

Returns the sort-field id.

Reimplemented from ilDclBaseFieldModel.

Definition at line 311 of file class.ilDclStandardField.php.

311 : string
312 {
313 if ($this->getId() == 'comments') {
314 return 'n_comments';
315 } else {
316 return $this->getTitle();
317 }
318 }

References ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

◆ getValueFromExcel()

ilDclStandardField::getValueFromExcel ( ilExcel  $excel,
int  $row,
int  $col 
)
Returns
string|int

Definition at line 350 of file class.ilDclStandardField.php.

351 {
352 $value = $excel->getCell($row, $col);
353 switch ($this->id) {
354 case 'owner':
355 return ilObjUser::_lookupId($value);
356 default:
357 return $value;
358 }
359 }
getCell(int $a_row, int $a_col)
Returns the value of a cell.
static _lookupId($a_user_str)

References ilObjUser\_lookupId(), and ilExcel\getCell().

+ Here is the call graph for this function:

◆ hasNumericSorting()

ilDclStandardField::hasNumericSorting ( )

Set to true, when the sorting should be handled numerical.

Reimplemented from ilDclBaseFieldModel.

Definition at line 320 of file class.ilDclStandardField.php.

320 : bool
321 {
322 if ($this->getId() == 'comments') {
323 return true;
324 }
325
326 return parent::hasNumericSorting();
327 }

References ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

◆ isStandardField()

ilDclStandardField::isStandardField ( )

Reimplemented from ilDclBaseFieldModel.

Definition at line 219 of file class.ilDclStandardField.php.

219 : bool
220 {
221 return true;
222 }

◆ isUnique()

ilDclStandardField::isUnique ( )

Reimplemented from ilDclBaseFieldModel.

Definition at line 224 of file class.ilDclStandardField.php.

224 : bool
225 {
226 return false;
227 }

Referenced by clone().

+ Here is the caller graph for this function:

Field Documentation

◆ $main_tpl

ilGlobalTemplateInterface ilDclStandardField::$main_tpl
private

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


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