ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilSkillObjectAdapter.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
27  public function __construct()
28  {
29  }
30 
31  public function getObjIdForRefId(int $a_ref_id): int
32  {
33  $trigger_obj_id = ($a_ref_id > 0)
34  ? ilObject::_lookupObjId($a_ref_id)
35  : 0;
36 
37  return $trigger_obj_id;
38  }
39 
40  public function getTypeForObjId(int $a_obj_id): ?string
41  {
42  return ilObject::_lookupType($a_obj_id);
43  }
44 
45  public function getTitleForObjId(int $a_obj_id): string
46  {
47  return ilObject::_lookupTitle($a_obj_id);
48  }
49 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
static _lookupType(int $id, bool $reference=false)