ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Blog\InternalDomainService Class Reference
+ Collaboration diagram for ILIAS\Blog\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data)
 
 exercise (int $a_node_id)
 
 perm ( $access_handler, ?int $node_id, int $id_type, int $user_id, int $owner)
 
 readingTime ()
 
 notes ()
 
 blogSettings ()
 
 posting ()
 
 news ()
 
 notification ()
 

Protected Attributes

Container $dic
 

Static Protected Attributes

static array $instance = []
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 37 of file class.InternalDomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Blog\InternalDomainService::__construct ( Container  $DIC,
protected InternalRepoService  $repo,
protected InternalDataService  $data 
)

Definition at line 44 of file class.InternalDomainService.php.

References $DIC, and ILIAS\Repository\initDomainServices().

48  {
49  $this->initDomainServices($DIC);
50  $this->dic = $DIC;
51  }
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ blogSettings()

ILIAS\Blog\InternalDomainService::blogSettings ( )

Definition at line 88 of file class.InternalDomainService.php.

Referenced by ILIAS\Blog\Settings\BlockSettingsGUI\__construct(), and ilObjBlogGUI\__construct().

88  : SettingsManager
89  {
90  return self::$instance["settings"] ??
91  self::$instance["settings"] = new SettingsManager(
92  $this->data,
93  $this->repo,
94  $this
95  );
96  }
+ Here is the caller graph for this function:

◆ exercise()

ILIAS\Blog\InternalDomainService::exercise ( int  $a_node_id)

Definition at line 53 of file class.InternalDomainService.php.

References ILIAS\Repository\repositoryTree(), and ILIAS\Repository\user().

53  : BlogExercise
54  {
55  return new BlogExercise(
56  $a_node_id,
57  $this->repositoryTree(),
58  $this->user()
59  );
60  }
+ Here is the call graph for this function:

◆ news()

ILIAS\Blog\InternalDomainService::news ( )

Definition at line 107 of file class.InternalDomainService.php.

107  : NewsManager
108  {
109  return self::$instance["news"] ??= new NewsManager(
110  $this->data,
111  $this->repo,
112  $this
113  );
114  }

◆ notes()

ILIAS\Blog\InternalDomainService::notes ( )

Definition at line 83 of file class.InternalDomainService.php.

Referenced by ILIAS\Blog\Settings\SettingsGUI\__construct().

83  : Notes\DomainService
84  {
85  return $this->dic->notes()->domain();
86  }
+ Here is the caller graph for this function:

◆ notification()

ILIAS\Blog\InternalDomainService::notification ( )

Definition at line 116 of file class.InternalDomainService.php.

116  : NotificationManager
117  {
118  return self::$instance["notification"] ??= new NotificationManager(
119  $this
120  );
121  }

◆ perm()

ILIAS\Blog\InternalDomainService::perm (   $access_handler,
?int  $node_id,
int  $id_type,
int  $user_id,
int  $owner 
)

Definition at line 62 of file class.InternalDomainService.php.

Referenced by ilObjBlogGUI\__construct().

68  : PermissionManager {
69  return new PermissionManager(
70  $access_handler,
71  $node_id,
72  $id_type,
73  $user_id,
74  $owner
75  );
76  }
+ Here is the caller graph for this function:

◆ posting()

ILIAS\Blog\InternalDomainService::posting ( )

Definition at line 98 of file class.InternalDomainService.php.

98  : PostingManager
99  {
100  return self::$instance["posting"] ??= new PostingManager(
101  $this->data,
102  $this->repo,
103  $this
104  );
105  }

◆ readingTime()

ILIAS\Blog\InternalDomainService::readingTime ( )

Definition at line 78 of file class.InternalDomainService.php.

Referenced by ilObjBlogGUI\__construct().

78  : ReadingTimeManager
79  {
80  return new ReadingTimeManager();
81  }
+ Here is the caller graph for this function:

Field Documentation

◆ $dic

Container ILIAS\Blog\InternalDomainService::$dic
protected

Definition at line 42 of file class.InternalDomainService.php.

◆ $instance

array ILIAS\Blog\InternalDomainService::$instance = []
staticprotected

Definition at line 41 of file class.InternalDomainService.php.


The documentation for this class was generated from the following file: