ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilNewsContext.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  protected $obj_id;
17 
21  protected $obj_type;
22 
26  protected $sub_id;
27 
31  protected $sub_type;
32 
36  public function __construct(int $obj_id, string $obj_type, int $sub_id, string $sub_type)
37  {
38  $this->obj_id = $obj_id;
39  $this->obj_type = $obj_type;
40  $this->sub_id = $sub_id;
41  $this->sub_type = $sub_type;
42  }
43 
49  public function getObjId() : int
50  {
51  return $this->obj_id;
52  }
53 
59  public function getObjType() : string
60  {
61  return $this->obj_type;
62  }
63 
69  public function getSubId() : int
70  {
71  return $this->sub_id;
72  }
73 
79  public function getSubType() : string
80  {
81  return $this->sub_type;
82  }
83 }
getObjId()
Get Obj Id.
getSubId()
Get Sub Obj Id.
getObjType()
Get Obj Type.
getSubType()
Get Sub Obj Type.
__construct(int $obj_id, string $obj_type, int $sub_id, string $sub_type)
Constructor.