ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilDclIliasReferenceRecordFieldModel Class Reference

Class ilDclIliasReferenceRecordFieldModel. More...

+ Inheritance diagram for ilDclIliasReferenceRecordFieldModel:
+ Collaboration diagram for ilDclIliasReferenceRecordFieldModel:

Public Member Functions

 __construct (ilDclBaseRecordModel $record, ilDclBaseFieldModel $field)
 
 getStatus ()
 
 getValueForRepresentation ()
 
 getExportValue ()
 
- Public Member Functions inherited from ilDclBaseRecordFieldModel
 __construct (ilDclBaseRecordModel $record, ilDclBaseFieldModel $field)
 
 doCreate ()
 Creates an Id and a database entry. More...
 
 doUpdate ()
 Update object in database. More...
 
 delete ()
 Delete record field in database. More...
 
 getValue ()
 
 getValueForRepresentation ()
 
 serializeData ($value)
 Serialize data before storing to db. More...
 
 deserializeData ($value)
 Deserialize data before applying to field. More...
 
 setValue ($value, $omit_parsing=false)
 Set value for record field. More...
 
 setValueFromForm ($form)
 
 parseExportValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 getValueFromExcel ($excel, $row, $col)
 
 parseValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 getExportValue ()
 
 fillExcelExport (ilExcel $worksheet, &$row, &$col)
 
 getPlainText ()
 
 getSortingValue ($link=true)
 
 addHiddenItemsToConfirmation (ilConfirmationGUI &$confirmation)
 
 parseSortingValue ($value, $link=true)
 Returns sortable value for the specific field-types. More...
 
 cloneStructure (ilDclBaseRecordFieldModel $old_record_field)
 
 afterClone ()
 
 getField ()
 
 getId ()
 
 getRecord ()
 
 getRecordRepresentation ()
 
 setRecordRepresentation ($record_representation)
 
 getFieldRepresentation ()
 
 setFieldRepresentation ($field_representation)
 

Protected Attributes

 $dcl_obj_id
 
- Protected Attributes inherited from ilDclBaseRecordFieldModel
 $id
 
 $field
 
 $record
 
 $record_representation
 
 $field_representation
 
 $value
 
 $user
 
 $ctrl
 
 $db
 
 $lng
 

Additional Inherited Members

- Protected Member Functions inherited from ilDclBaseRecordFieldModel
 doRead ()
 Read object data from database. More...
 
 loadValue ()
 Load the value. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDclIliasReferenceRecordFieldModel::__construct ( ilDclBaseRecordModel  $record,
ilDclBaseFieldModel  $field 
)

Definition at line 27 of file class.ilDclIliasReferenceRecordFieldModel.php.

References ilDclBaseRecordFieldModel\getField(), and ilDclCache\getTableCache().

27  {
28  parent::__construct($record, $field);
29 
30  $dclTable = ilDclCache::getTableCache($this->getField()->getTableId());
31  $this->dcl_obj_id = $dclTable->getCollectionObject()->getId();
32  }
static getTableCache($table_id=0)
+ Here is the call graph for this function:

Member Function Documentation

◆ getExportValue()

ilDclIliasReferenceRecordFieldModel::getExportValue ( )
Returns
int|string

Definition at line 61 of file class.ilDclIliasReferenceRecordFieldModel.php.

References ilLink\_getStaticLink(), and ilDclBaseRecordFieldModel\getValue().

61  {
62  $link = ilLink::_getStaticLink($this->getValue());
63  return $link;
64  }
+ Here is the call graph for this function:

◆ getStatus()

ilDclIliasReferenceRecordFieldModel::getStatus ( )

Definition at line 34 of file class.ilDclIliasReferenceRecordFieldModel.php.

References $DIC, $ilDB, $ilUser, $query, $result, ilObject2\_lookupObjectId(), ilDBConstants\FETCHMODE_OBJECT, and ilDclBaseRecordFieldModel\getValue().

34  {
35  global $DIC;
36  $ilDB = $DIC['ilDB'];
37  $ilUser = $DIC['ilUser'];
38  $usr_id = $ilUser->getId();
39  $obj_ref = $this->getValue();
40  $obj_id = ilObject2::_lookupObjectId($obj_ref);
41  $query = " SELECT status_changed, status
42  FROM ut_lp_marks
43  WHERE usr_id = ".$usr_id." AND obj_id = ".$obj_id;
44  $result = $ilDB->query($query);
45  return ($result->numRows() == 0)? false : $result->fetchRow(ilDBConstants::FETCHMODE_OBJECT);
46  }
$result
static _lookupObjectId($a_ref_id)
$ilUser
Definition: imgupload.php:18
global $ilDB
global $DIC
+ Here is the call graph for this function:

◆ getValueForRepresentation()

ilDclIliasReferenceRecordFieldModel::getValueForRepresentation ( )

Definition at line 52 of file class.ilDclIliasReferenceRecordFieldModel.php.

References $ref_id, ilObject2\_lookupObjectId(), ilObject2\_lookupTitle(), and ilDclBaseRecordFieldModel\getValue().

52  {
53  $ref_id = $this->getValue();
55  }
static _lookupTitle($a_id)
static _lookupObjectId($a_ref_id)
$ref_id
Definition: sahs_server.php:39
+ Here is the call graph for this function:

Field Documentation

◆ $dcl_obj_id

ilDclIliasReferenceRecordFieldModel::$dcl_obj_id
protected

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