ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilCertificateObjectHelper.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
14 public function getInstanceByObjId($objectId, bool $stop_on_error = true)
15 {
16 return ilObjectFactory::getInstanceByObjId($objectId, $stop_on_error);
17 }
18
19
24 public function lookupObjId(int $refId) : int
25 {
26 return (int) ilObject::_lookupObjId($refId);
27 }
28
33 public function lookupType(int $objectId) : string
34 {
35 return ilObject::_lookupType($objectId);
36 }
37
42 public function lookupTitle(int $objectId) : string
43 {
44 return (string) ilObject::_lookupTitle($objectId);
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
getInstanceByObjId($objectId, bool $stop_on_error=true)
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
$refId
Definition: xapitoken.php:42