ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Wiki\Wiki\DomainService Class Reference
+ Collaboration diagram for ILIAS\Wiki\Wiki\DomainService:

Public Member Functions

 __construct (InternalDataService $data_service, InternalRepoService $repo_service, InternalDomainService $domain_service)
 
 checkRefId (int $ref_id)
 
 getObjId (int $ref_id)
 
 object (int $ref_id)
 
 translation (int $ref_id)
 
 getStartingPageId (int $wiki_ref_id)
 

Protected Attributes

InternalDomainService $domain_service
 
InternalRepoService $repo_service
 
InternalDataService $data_service
 

Detailed Description

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

Definition at line 31 of file DomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Wiki\Wiki\DomainService::__construct ( InternalDataService  $data_service,
InternalRepoService  $repo_service,
InternalDomainService  $domain_service 
)

Definition at line 37 of file DomainService.php.

41 {
42 $this->repo_service = $repo_service;
43 $this->data_service = $data_service;
44 $this->domain_service = $domain_service;
45 }
InternalDataService $data_service
InternalRepoService $repo_service
InternalDomainService $domain_service

References ILIAS\Wiki\Wiki\DomainService\$data_service, ILIAS\Wiki\Wiki\DomainService\$domain_service, and ILIAS\Wiki\Wiki\DomainService\$repo_service.

Member Function Documentation

◆ checkRefId()

ILIAS\Wiki\Wiki\DomainService::checkRefId ( int  $ref_id)

Definition at line 47 of file DomainService.php.

47 : void
48 {
50 if (\ilObject::_lookupType($obj_id) !== "wiki") {
51 throw new \ilWikiException("Not a wiki ref id (" . $ref_id . ").");
52 }
53 }
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:66

References $ref_id, ilObject\_lookupObjId(), and ilObject\_lookupType().

+ Here is the call graph for this function:

◆ getObjId()

ILIAS\Wiki\Wiki\DomainService::getObjId ( int  $ref_id)

Definition at line 55 of file DomainService.php.

55 : int
56 {
57 return \ilObject::_lookupObjId($ref_id);
58 }

References $ref_id.

◆ getStartingPageId()

ILIAS\Wiki\Wiki\DomainService::getStartingPageId ( int  $wiki_ref_id)

Definition at line 72 of file DomainService.php.

72 : ?int
73 {
74 $pm = $this->domain_service->page()->page($wiki_ref_id);
75 $wiki = $this->object($wiki_ref_id);
76 $start_page = $wiki->getStartPage();
77 if ($start_page === "") {
78 return null;
79 }
80 return $pm->getPageIdForTitle($start_page);
81 }

References ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ object()

ILIAS\Wiki\Wiki\DomainService::object ( int  $ref_id)

Definition at line 60 of file DomainService.php.

62 : \ilObjWiki {
63 $this->checkRefId($ref_id);
64 return new \ilObjWiki($ref_id);
65 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ translation()

ILIAS\Wiki\Wiki\DomainService::translation ( int  $ref_id)

Definition at line 67 of file DomainService.php.

67 : Translations
68 {
69 return $this->object($ref_id)->getObjectProperties()->getPropertyTranslations();
70 }

References ILIAS\Repository\object().

+ Here is the call graph for this function:

Field Documentation

◆ $data_service

InternalDataService ILIAS\Wiki\Wiki\DomainService::$data_service
protected

Definition at line 35 of file DomainService.php.

Referenced by ILIAS\Wiki\Wiki\DomainService\__construct().

◆ $domain_service

InternalDomainService ILIAS\Wiki\Wiki\DomainService::$domain_service
protected

Definition at line 33 of file DomainService.php.

Referenced by ILIAS\Wiki\Wiki\DomainService\__construct().

◆ $repo_service

InternalRepoService ILIAS\Wiki\Wiki\DomainService::$repo_service
protected

Definition at line 34 of file DomainService.php.

Referenced by ILIAS\Wiki\Wiki\DomainService\__construct().


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