2 require_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
3 require_once(
'./Customizing/global/plugins/Libraries/ActiveRecord/Views/Display/class.arDisplayField.php');
4 require_once(
'./Customizing/global/plugins/Libraries/ActiveRecord/Views/Display/class.arDisplayFields.php');
72 $this->ctrl->saveParameter($parent_gui,
'ar_id');
78 protected function init() {
87 $this->
setTitle(strtolower(str_replace(
"Record",
"", get_class($this->ar))));
94 $this->
fields->sortFields();
109 $this->
setTemplate(
new ilTemplate(
"tpl.display.html",
true,
true,
"Customizing/global/plugins/Libraries/ActiveRecord"));
118 $this->
getTemplate()->setVariable(
"TITLE", $this->title);
119 $this->setArFieldsData();
127 protected function setArFieldsData() {
128 foreach ($this->
fields->getFields() as $field) {
132 if ($field->getVisible()) {
133 $get_function = $field->getGetFunctionName();
134 $value = $this->ar->$get_function();
136 $this->
getTemplate()->setVariable(
"ITEM", $this->
txt($field->getTxt()));
154 if ($value == NULL) {
189 return $this->
txt(
"",
false);
199 return "CUSTOM-OVERRIDE: setCustomFieldData";
212 return $user->getPublicName();
225 return $user->getPublicName();
337 return $this->
getFields()->getField($field_name);
387 protected function txt(
$txt, $plugin_txt =
true) {
388 return $this->parent_gui->txt(
$txt, $plugin_txt);