4 include_once
'./Modules/DataCollection/classes/class.ilDataCollectionField.php';
5 include_once
'./Modules/DataCollection/classes/class.ilDataCollectionDatatype.php';
26 $message =
"Standard fields cannot be read from DB";
28 $ilLog->write(
"[ilDataCollectionStandardField] ".$message);
37 $message =
"Standard fields cannot be written to DB";
39 $ilLog->write(
"[ilDataCollectionStandardField] ".$message);
90 array(
"id"=>
"last_edit_by",
"title" => $lng->txt(
"dcl_last_edited_by"),
"description" => $lng->txt(
"dcl_last_edited_by_description"),
"datatype_id" =>
ilDataCollectionDatatype::INPUTFORMAT_TEXT,
"required" =>
true),
101 $stdFields = array();
102 foreach(self::_getStandardFieldsAsArray() as $array)
107 $field->buildFromDBRecord($array);
108 $stdFields[] = $field;
120 foreach (array(
'dcl_id',
'dcl_creation_date',
'dcl_last_update',
'dcl_owner',
'dcl_last_edited_by',
'dcl_comments') as
$id) {
121 $identifiers .= $ilDB->quote($id,
'text') .
',';
123 $identifiers = rtrim($identifiers,
',');
124 $sql = $ilDB->query(
'SELECT value FROM lng_data WHERE identifier IN (' . $identifiers .
')');
126 while ($rec = $ilDB->fetchAssoc($sql)) {
127 $titles[] = $rec[
'value'];
138 foreach(self::_getStandardFieldsAsArray() as $field)
140 if($field[
"id"] == $field_id)
156 foreach (self::_getStandardFieldsAsArray() as $fields_data) {
157 if (
$id == $fields_data[
'id']) {
static _getAllStandardFieldTitles()
const INPUTFORMAT_DATETIME
static _isStandardField($field_id)
static _getStandardFieldsAsArray()
setRequired($a_required)
Set Required.
static _getStandardFields($table_id)
setVisible($visible)
setVisible
Class ilDataCollectionField.
getRequired()
Get Required Required.
static _getDatatypeForId($id)
gives you the datatype id of a specified standard field.
cloneStructure(ilDataCollectionStandardField $original_record)
setFilterable($filterable)
setFilterable
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilDataCollectionField.
setExportable($exportable)