ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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.

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

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

Member Function Documentation

◆ checkRefId()

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

Definition at line 47 of file DomainService.php.

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

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

47  : void
48  {
50  if (\ilObject::_lookupType($obj_id) !== "wiki") {
51  throw new \ilWikiException("Not a wiki ref id (" . $ref_id . ").");
52  }
53  }
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:65
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 55 of file DomainService.php.

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

◆ getStartingPageId()

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

Definition at line 72 of file DomainService.php.

References null, and ILIAS\Wiki\Wiki\DomainService\object().

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ 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.

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

Referenced by ILIAS\Wiki\Wiki\DomainService\getStartingPageId(), and ILIAS\Wiki\Wiki\DomainService\translation().

62  : \ilObjWiki {
63  $this->checkRefId($ref_id);
64  return new \ilObjWiki($ref_id);
65  }
$ref_id
Definition: ltiauth.php:65
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  $ref_id)

Definition at line 67 of file DomainService.php.

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

67  : Translations
68  {
69  return $this->object($ref_id)->getObjectProperties()->getPropertyTranslations();
70  }
$ref_id
Definition: ltiauth.php:65
+ 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: