ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilSkillObjectAdapter.php
Go to the documentation of this file.
1<?php
2
7{
11 public function __construct()
12 {
13
14 }
15
19 public function getObjIdForRefId(int $a_ref_id) : int
20 {
21 $trigger_obj_id = ($a_ref_id > 0)
22 ? ilObject::_lookupObjId($a_ref_id)
23 : 0;
24
25 return $trigger_obj_id;
26 }
27
31 public function getTypeForObjId(int $a_obj_id) : ?string
32 {
33 return ilObject::_lookupType($a_obj_id);
34 }
35
39 public function getTitleForObjId(int $a_obj_id) : ?string
40 {
41 return ilObject::_lookupTitle($a_obj_id);
42 }
43
44}
An exception for terminatinating execution or to throw for unit testing.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
Class ilBasicSkillObjectAdapter.
getObjIdForRefId(int $a_ref_id)
@inheritDoc
getTypeForObjId(int $a_obj_id)
@inheritDoc
getTitleForObjId(int $a_obj_id)
@inheritDoc