2 require_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
3 require_once(
'./Services/ActiveRecord/Views/Display/class.arDisplayField.php');
4 require_once(
'./Services/ActiveRecord/Views/Display/class.arDisplayFields.php');
76 $this->ctrl->saveParameter($parent_gui,
'ar_id');
93 $this->
setTitle(strtolower(str_replace(
"Record",
"", get_class($this->ar))));
101 $this->
fields->sortFields();
128 $this->
getTemplate()->setVariable(
"TITLE", $this->title);
129 $this->setArFieldsData();
137 protected function setArFieldsData()
139 foreach ($this->
fields->getFields() as $field) {
143 if ($field->getVisible()) {
144 $get_function = $field->getGetFunctionName();
145 $value = $this->ar->$get_function();
147 $this->
getTemplate()->setVariable(
"ITEM", $this->
txt($field->getTxt()));
166 if ($value == null) {
202 return $this->
txt(
"",
false);
213 return "CUSTOM-OVERRIDE: setCustomFieldData";
227 return $user->getPublicName();
241 return $user->getPublicName();
365 return $this->
getFields()->getField($field_name);
420 protected function txt(
$txt, $plugin_txt =
true)
422 return $this->parent_gui->txt(
$txt, $plugin_txt);
addField(arDisplayField $field)
setBackButtonTarget($back_button_target)
txt($txt, $plugin_txt=true)
setDateTimeData(arDisplayField $field, $value)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setBackButtonName($back_button_name)
setEmptyFieldData(arDisplayField $field)
setNumericData(arDisplayField $field, $value)
special template class to simplify handling of ITX/PEAR
setTextData(arDisplayField $field, $value)
GUI-Class arDisplayFields.
setArFieldData(arDisplayField $field, $value)
setModifiedByData(arDisplayField $field, $value)
setCustomFieldData(arDisplayField $field)
setClobData(arDisplayField $field, $value)
setFields(arDisplayFields $fields)
GUI-Class arDisplayField.
setCreatedByData(arDisplayField $field, $value)