ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
DomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Wiki\Page;
22 
26 
31 {
35 
36  public function __construct(
37  InternalDataService $data_service,
38  InternalRepoService $repo_service,
39  InternalDomainService $domain_service
40  ) {
41  $this->repo_service = $repo_service;
42  $this->data_service = $data_service;
43  $this->domain_service = $domain_service;
44  }
45 
46  public function getWikiPage(
47  int $ref_id,
48  int $pg_id,
49  int $old_nr = 0,
50  string $lang = "-"
51  ): \ilWikiPage {
52  $wp = new \ilWikiPage(
53  $pg_id,
54  $old_nr,
55  $lang
56  );
57  $wp->setWikiRefId($ref_id);
58  return $wp;
59  }
60 
61  public function page(
62  int $ref_id
63  ): PageManager {
64  return new PageManager(
65  $this->data_service,
66  $this->repo_service->page(),
67  $this->domain_service->wiki(),
68  $this,
69  $ref_id
70  );
71  }
72 
73 }
InternalRepoService $repo_service
InternalDomainService $domain_service
$ref_id
Definition: ltiauth.php:65
InternalDataService $data_service
getWikiPage(int $ref_id, int $pg_id, int $old_nr=0, string $lang="-")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$lang
Definition: xapiexit.php:25
__construct(InternalDataService $data_service, InternalRepoService $repo_service, InternalDomainService $domain_service)