ILIAS  release_8 Revision v8.24
class.ilConditionObjectAdapter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/******************************************************************************
6 *
7 * This file is part of ILIAS, a powerful learning management system
8 * published by ILIAS open source e-Learning e.V.
9 *
10 * ILIAS is licensed with the GPL-3.0,
11 * see https://www.gnu.org/licenses/gpl-3.0.en.html
12 * You should have received a copy of said license along with the
13 * source code, too.
14 *
15 * If this is not the case or you just want to try ILIAS, you'll find
16 * us at:
17 * https://www.ilias.de
18 * https://github.com/ILIAS-eLearning
19 *
20 *****************************************************************************/
21
28{
32 public function getObjIdForRefId(int $a_ref_id): int
33 {
34 return ilObject::_lookupObjId($a_ref_id);
35 }
36
40 public function getTypeForObjId(int $a_obj_id): string
41 {
42 return ilObject::_lookupType($a_obj_id);
43 }
44}
getObjIdForRefId(int $a_ref_id)
Get object id for reference id.
getTypeForObjId(int $a_obj_id)
Get object type for object id.
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)