ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Blog;
22 
28 
33 {
35 
38 
39  public function __construct(
41  InternalRepoService $repo_service,
42  InternalDataService $data_service
43  ) {
44  $this->repo_service = $repo_service;
45  $this->data_service = $data_service;
46  $this->initDomainServices($DIC);
47  }
48 
49  public function exercise(int $a_node_id): BlogExercise
50  {
51  return new BlogExercise(
52  $a_node_id,
53  $this->repositoryTree(),
54  $this->user()
55  );
56  }
57 
58  public function blogAccess(
59  $access_handler,
60  ?int $node_id,
61  int $id_type,
62  int $user_id,
63  int $owner
64  ): BlogAccess {
65  return new BlogAccess(
66  $access_handler,
67  $node_id,
68  $id_type,
69  $user_id,
70  $owner
71  );
72  }
73 
74  public function readingTime(): ReadingTimeManager
75  {
76  return new ReadingTimeManager();
77  }
78 
79 }
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
blogAccess( $access_handler, ?int $node_id, int $id_type, int $user_id, int $owner)
initDomainServices(\ILIAS\DI\Container $DIC)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...