ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilDclBaseRecordRepresentation Class Reference

Class ilDclBaseRecordRepresentation. More...

+ Inheritance diagram for ilDclBaseRecordRepresentation:
+ Collaboration diagram for ilDclBaseRecordRepresentation:

Public Member Functions

 __construct (ilDclBaseRecordFieldModel $record_field)
 
 getFormGUI (ilPropertyFormGUI $formGUI)
 
 parseFormInput ($value)
 function parses stored value to the variable needed to fill into the form for editing. More...
 
 fillFormInput ($form)
 Fills the form with the value of a record. More...
 
 getHTML ($link=true)
 Outputs html of a certain field. More...
 
 getSingleHTML (array $options=null, $link=true)
 Returns data for single record view. More...
 
 getConfirmationHTML ()
 Returns data for confirmation list When returning false, attribute is ignored in list. More...
 
 fillRow (ilTemplate $tpl)
 Fills row with record data. More...
 
 getRecordField ()
 Get Record Field. More...
 
 getField ()
 Getter shortcut for field. More...
 
 getRecord ()
 Getter shortcut for record. More...
 

Protected Member Functions

 getFormInput ()
 Gets the value from from the record field. More...
 

Protected Attributes

 $record_field
 
 $lng
 
 $access
 
 $ctrl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDclBaseRecordRepresentation::__construct ( ilDclBaseRecordFieldModel  $record_field)

Definition at line 18 of file class.ilDclBaseRecordRepresentation.php.

References $DIC, $ilCtrl, $lng, and $record_field.

19  {
20  global $DIC;
21  $lng = $DIC['lng'];
22  $ilAccess = $DIC['ilAccess'];
23  $ilCtrl = $DIC['ilCtrl'];
24 
25  $this->lng = $lng;
26  $this->access = $ilAccess;
27  $this->ctrl = $ilCtrl;
28 
29  $this->record_field = $record_field;
30  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ fillFormInput()

ilDclBaseRecordRepresentation::fillFormInput (   $form)

Fills the form with the value of a record.

Parameters
$form

Definition at line 57 of file class.ilDclBaseRecordRepresentation.php.

References $form, getField(), getFormInput(), and getRecordField().

58  {
59  $input_field = $form->getItemByPostVar('field_' . $this->getRecordField()->getField()->getId());
60  if ($input_field) {
61  $value = $this->getFormInput();
62  $input_field->setValueByArray(array("field_" . $this->getRecordField()->getField()->getId() => $value));
63  }
64  }
getFormInput()
Gets the value from from the record field.
if(isset($_POST['submit'])) $form
+ Here is the call graph for this function:

◆ fillRow()

ilDclBaseRecordRepresentation::fillRow ( ilTemplate  $tpl)

Fills row with record data.

Parameters
ilTemplate$tpl

Definition at line 123 of file class.ilDclBaseRecordRepresentation.php.

124  {
125  }

◆ getConfirmationHTML()

ilDclBaseRecordRepresentation::getConfirmationHTML ( )

Returns data for confirmation list When returning false, attribute is ignored in list.

Returns
string

Definition at line 112 of file class.ilDclBaseRecordRepresentation.php.

References getHTML().

113  {
114  return $this->getHTML();
115  }
getHTML($link=true)
Outputs html of a certain field.
+ Here is the call graph for this function:

◆ getField()

◆ getFormGUI()

ilDclBaseRecordRepresentation::getFormGUI ( ilPropertyFormGUI  $formGUI)

Definition at line 33 of file class.ilDclBaseRecordRepresentation.php.

34  {
35  // Apply form-elements to record-entry-gui
36  }

◆ getFormInput()

ilDclBaseRecordRepresentation::getFormInput ( )
protected

Gets the value from from the record field.

Returns
mixed

Definition at line 72 of file class.ilDclBaseRecordRepresentation.php.

References getRecordField(), and parseFormInput().

Referenced by fillFormInput(), and ilDclTextRecordRepresentation\fillFormInput().

73  {
74  return $this->parseFormInput($this->getRecordField()->getValue());
75  }
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHTML()

ilDclBaseRecordRepresentation::getHTML (   $link = true)

Outputs html of a certain field.

Parameters
mixed$value
bool | true$link
Returns
string

Definition at line 86 of file class.ilDclBaseRecordRepresentation.php.

References getRecordField().

Referenced by getConfirmationHTML(), and getSingleHTML().

87  {
88  return $this->getRecordField()->getValue();
89  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRecord()

ilDclBaseRecordRepresentation::getRecord ( )

Getter shortcut for record.

Returns
ilDclBaseRecordModel

Definition at line 155 of file class.ilDclBaseRecordRepresentation.php.

Referenced by ilDclRatingRecordRepresentation\getHTML(), ilDclMobRecordRepresentation\getHTML(), ilDclFileuploadRecordRepresentation\getHTML(), and ilDclTextRecordRepresentation\getHTML().

156  {
157  return $this->record_field->getRecord();
158  }
+ Here is the caller graph for this function:

◆ getRecordField()

◆ getSingleHTML()

ilDclBaseRecordRepresentation::getSingleHTML ( array  $options = null,
  $link = true 
)

Returns data for single record view.

Parameters
array | NULL$options
bool$link
Returns
string

Definition at line 100 of file class.ilDclBaseRecordRepresentation.php.

References getHTML().

101  {
102  return $this->getHTML($link);
103  }
getHTML($link=true)
Outputs html of a certain field.
+ Here is the call graph for this function:

◆ parseFormInput()

ilDclBaseRecordRepresentation::parseFormInput (   $value)

function parses stored value to the variable needed to fill into the form for editing.

Parameters
$value
Returns
mixed

Definition at line 46 of file class.ilDclBaseRecordRepresentation.php.

Referenced by getFormInput().

47  {
48  return $value;
49  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilDclBaseRecordRepresentation::$access
protected

◆ $ctrl

ilDclBaseRecordRepresentation::$ctrl
protected

Definition at line 15 of file class.ilDclBaseRecordRepresentation.php.

◆ $lng

ilDclBaseRecordRepresentation::$lng
protected

◆ $record_field

ilDclBaseRecordRepresentation::$record_field
protected

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