ILIAS  release_8 Revision v8.23
ilCertificateObjectHelper.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
33  public function getInstanceByObjId(int $objectId, bool $stop_on_error = true): ?ilObject
34  {
35  return ilObjectFactory::getInstanceByObjId($objectId, $stop_on_error);
36  }
37 
38  public function lookupObjId(int $refId): int
39  {
40  return ilObject::_lookupObjId($refId);
41  }
42 
43  public function lookupType(int $objectId): string
44  {
45  return ilObject::_lookupType($objectId);
46  }
47 
48  public function lookupTitle(int $objectId): string
49  {
50  return ilObject::_lookupTitle($objectId);
51  }
52 }
$refId
Definition: xapitoken.php:58
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
getInstanceByObjId(int $objectId, bool $stop_on_error=true)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupType(int $id, bool $reference=false)