ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDclBaseRecordRepresentation.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
11 {
12  protected $record_field;
13  protected $lng;
14  protected $access;
15  protected $ctrl;
16 
18  {
19  global $DIC;
20  $lng = $DIC['lng'];
21  $ilAccess = $DIC['ilAccess'];
22  $ilCtrl = $DIC['ilCtrl'];
23 
24  $this->lng = $lng;
25  $this->access = $ilAccess;
26  $this->ctrl = $ilCtrl;
27 
28  $this->record_field = $record_field;
29  }
30 
31  public function getFormGUI(ilPropertyFormGUI $formGUI)
32  {
33  // Apply form-elements to record-entry-gui
34  }
35 
36 
44  public function parseFormInput($value)
45  {
46  return $value;
47  }
48 
49 
54  public function fillFormInput($form)
55  {
56  $input_field = $form->getItemByPostVar('field_' . $this->getRecordField()->getField()->getId());
57  if ($input_field) {
58  $value = $this->getFormInput();
59  $input_field->setValueByArray(array("field_" . $this->getRecordField()->getField()->getId() => $value));
60  }
61  }
62 
63 
68  protected function getFormInput()
69  {
70  return $this->parseFormInput($this->getRecordField()->getValue());
71  }
72 
73 
81  public function getHTML($link = true)
82  {
83  return $this->getRecordField()->getValue();
84  }
85 
86 
94  public function getSingleHTML(array $options = null, $link = true)
95  {
96  return $this->getHTML($link);
97  }
98 
99 
105  public function getConfirmationHTML()
106  {
107  return $this->getHTML();
108  }
109 
114  public function fillRow(ilTemplate $tpl)
115  {
116  }
117 
118 
123  public function getRecordField()
124  {
125  return $this->record_field;
126  }
127 
128 
133  public function getField()
134  {
135  return $this->record_field->getField();
136  }
137 
142  public function getRecord()
143  {
144  return $this->record_field->getRecord();
145  }
146 }
fillRow(ilTemplate $tpl)
Fills row with record data.
This class represents a property form user interface.
fillFormInput($form)
Fills the form with the value of a record.
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
global $ilCtrl
Definition: ilias.php:18
__construct(ilDclBaseRecordFieldModel $record_field)
getFormInput()
Gets the value from from the record field.
if(isset($_POST['submit'])) $form
special template class to simplify handling of ITX/PEAR
getSingleHTML(array $options=null, $link=true)
Returns data for single record view.
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.
getConfirmationHTML()
Returns data for confirmation list When returning false, attribute is ignored in list.
Create styles array
The data for the language used.
Class ilDclBaseRecordRepresentation.
getHTML($link=true)
Outputs html of a certain field.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20