ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 16 of file class.ilDclBaseRecordRepresentation.php.

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

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

Member Function Documentation

◆ fillFormInput()

ilDclBaseRecordRepresentation::fillFormInput (   $form)

Fills the form with the value of a record.

Parameters
$form

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

References array, getField(), getFormInput(), and getRecordField().

50  {
51  $input_field = $form->getItemByPostVar('field_'.$this->getRecordField()->getField()->getId());
52  if($input_field) {
53  $value = $this->getFormInput();
54  $input_field->setValueByArray(array("field_".$this->getRecordField()->getField()->getId() => $value));
55  }
56  }
getFormInput()
Gets the value from from the record field.
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ fillRow()

ilDclBaseRecordRepresentation::fillRow ( ilTemplate  $tpl)

Fills row with record data.

Parameters
ilTemplate$tpl

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

105  {
106 
107  }

◆ getConfirmationHTML()

ilDclBaseRecordRepresentation::getConfirmationHTML ( )

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

Returns
string

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

References getHTML().

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

◆ getField()

ilDclBaseRecordRepresentation::getField ( )

◆ getFormGUI()

ilDclBaseRecordRepresentation::getFormGUI ( ilPropertyFormGUI  $formGUI)

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

29  {
30  // Apply form-elements to record-entry-gui
31  }

◆ getFormInput()

ilDclBaseRecordRepresentation::getFormInput ( )
protected

Gets the value from from the record field.

Returns
mixed

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

References getRecordField(), and parseFormInput().

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

63  {
64  return $this->parseFormInput($this->getRecordField()->getValue());
65  }
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 75 of file class.ilDclBaseRecordRepresentation.php.

References getRecordField().

Referenced by getConfirmationHTML(), and getSingleHTML().

75  {
76  return $this->getRecordField()->getValue();
77  }
+ 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 131 of file class.ilDclBaseRecordRepresentation.php.

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

131  {
132  return $this->record_field->getRecord();
133  }
+ 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 87 of file class.ilDclBaseRecordRepresentation.php.

References getHTML().

87  {
88  return $this->getHTML($link);
89  }
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 41 of file class.ilDclBaseRecordRepresentation.php.

Referenced by getFormInput().

41  {
42  return $value;
43  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilDclBaseRecordRepresentation::$access
protected

◆ $ctrl

ilDclBaseRecordRepresentation::$ctrl
protected

Definition at line 14 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: