ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 $obj_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 30 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 36 of file DomainService.php.

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

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

Member Function Documentation

◆ checkRefId()

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

Definition at line 46 of file DomainService.php.

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

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

46  : void
47  {
49  if (\ilObject::_lookupType($obj_id) !== "wiki") {
50  throw new \ilWikiException("Not a wiki ref id (" . $ref_id . ").");
51  }
52  }
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:67
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getObjId()

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

Definition at line 54 of file DomainService.php.

54  : int
55  {
56  return \ilObject::_lookupObjId($ref_id);
57  }
$ref_id
Definition: ltiauth.php:67

◆ getStartingPageId()

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

Definition at line 71 of file DomainService.php.

References ILIAS\Wiki\Wiki\DomainService\object().

71  : ?int
72  {
73  $pm = $this->domain_service->page()->page($wiki_ref_id);
74  $wiki = $this->object($wiki_ref_id);
75  $start_page = $wiki->getStartPage();
76  if ($start_page === "") {
77  return null;
78  }
79  return $pm->getPageIdForTitle($start_page);
80  }
+ Here is the call graph for this function:

◆ object()

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

Definition at line 59 of file DomainService.php.

References ILIAS\Wiki\Wiki\DomainService\checkRefId().

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

61  : \ilObjWiki {
62  $this->checkRefId($ref_id);
63  return new \ilObjWiki($ref_id);
64  }
$ref_id
Definition: ltiauth.php:67
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ translation()

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

Definition at line 66 of file DomainService.php.

67  {
68  return \ilObjectTranslation::getInstance($obj_id);
69  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $data_service

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

Definition at line 34 of file DomainService.php.

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

◆ $domain_service

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

Definition at line 32 of file DomainService.php.

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

◆ $repo_service

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

Definition at line 33 of file DomainService.php.

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


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