ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilNewsObjectAdapter.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 public function __construct()
17 {
18 }
19
26 public function getObjIdForRefId($a_ref_id)
27 {
28 return ilObject::_lookupObjId($a_ref_id);
29 }
30
37 public function getTypeForObjId($a_obj_id)
38 {
39 return ilObject::_lookupType($a_obj_id);
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
Wraps ilObject dependencies.
getObjIdForRefId($a_ref_id)
Get object id for reference id.
getTypeForObjId($a_obj_id)
Get object type for object id.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type