ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 17 of file class.ilDclBaseRecordRepresentation.php.

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 }
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7

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

Member Function Documentation

◆ fillFormInput()

ilDclBaseRecordRepresentation::fillFormInput (   $form)

Fills the form with the value of a record.

Parameters
$form

Reimplemented in ilDclRatingRecordRepresentation, and ilDclTextRecordRepresentation.

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

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 }
getFormInput()
Gets the value from from the record field.
if(isset($_POST['submit'])) $form

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

+ Here is the call graph for this function:

◆ fillRow()

ilDclBaseRecordRepresentation::fillRow ( ilTemplate  $tpl)

Fills row with record data.

Parameters
ilTemplate$tpl

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

115 {
116 }

◆ getConfirmationHTML()

ilDclBaseRecordRepresentation::getConfirmationHTML ( )

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

Returns
string

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

106 {
107 return $this->getHTML();
108 }
getHTML($link=true)
Outputs html of a certain field.

References getHTML().

+ Here is the call graph for this function:

◆ getField()

◆ getFormGUI()

ilDclBaseRecordRepresentation::getFormGUI ( ilPropertyFormGUI  $formGUI)

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

32 {
33 // Apply form-elements to record-entry-gui
34 }

◆ getFormInput()

ilDclBaseRecordRepresentation::getFormInput ( )
protected

Gets the value from from the record field.

Returns
mixed

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

69 {
70 return $this->parseFormInput($this->getRecordField()->getValue());
71 }
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.

References getRecordField(), and parseFormInput().

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

+ 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

Reimplemented in ilDclBooleanRecordRepresentation, ilDclDatetimeRecordRepresentation, ilDclFileuploadRecordRepresentation, ilDclIliasReferenceRecordRepresentation, ilDclMobRecordRepresentation, ilDclRatingRecordRepresentation, ilDclReferenceRecordRepresentation, ilDclSelectionRecordRepresentation, and ilDclTextRecordRepresentation.

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

82 {
83 return $this->getRecordField()->getValue();
84 }

References getRecordField().

Referenced by getConfirmationHTML(), and getSingleHTML().

+ 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 142 of file class.ilDclBaseRecordRepresentation.php.

143 {
144 return $this->record_field->getRecord();
145 }

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

+ 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

Reimplemented in ilDclIliasReferenceRecordRepresentation.

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

95 {
96 return $this->getHTML($link);
97 }

References getHTML().

+ 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

Reimplemented in ilDclDatetimeRecordRepresentation, ilDclFileuploadRecordRepresentation, and ilDclMobRecordRepresentation.

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

45 {
46 return $value;
47 }

Referenced by getFormInput().

+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilDclBaseRecordRepresentation::$access
protected

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

◆ $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: