ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.BlogGUIContext.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Blog;
22
24
26{
27 public function __construct(
28 protected int $node_id,
29 protected int $id_type,
30 protected ?\ilObjBlog $blog,
31 protected string $month,
32 protected ?int $author,
33 protected PermissionManager $permission,
35 protected bool $call_by_reference = false
36 ) {
37 }
38
39 public function getNodeId(): int
40 {
41 return $this->node_id;
42 }
43
44 public function getIdType(): int
45 {
46 return $this->id_type;
47 }
48
49 public function getObject(): ?\ilObjBlog
50 {
51 return $this->blog;
52 }
53
54 public function getBlog(): \ilObjBlog
55 {
56 if ($this->blog === null) {
57 throw new \LogicException("A Blog GUI context requires a blog object.");
58 }
59
60 return $this->blog;
61 }
62
63 public function getMonth(): string
64 {
65 return $this->month;
66 }
67
68 public function getAuthor(): ?int
69 {
70 return $this->author;
71 }
72
74 {
75 return $this->permission;
76 }
77
78 public function getRequest(): StandardGUIRequest
79 {
80 return $this->request;
81 }
82
83 public function isRepositoryNode(): bool
84 {
85 return $this->id_type === \ilObjBlogGUI::REPOSITORY_NODE_ID;
86 }
87
88 public function isCallByReference(): bool
89 {
90 return $this->call_by_reference;
91 }
92}
__construct(protected int $node_id, protected int $id_type, protected ?\ilObjBlog $blog, protected string $month, protected ?int $author, protected PermissionManager $permission, protected StandardGUIRequest $request, protected bool $call_by_reference=false)
$request
@ilCtrl_Calls ilObjLearningSequenceContentGUI: ilObjLearningSequenceConditionsGUI
Definition: ltiauth.php:39