ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Notes\InternalDataService Class Reference

Repository internal data service. More...

+ Collaboration diagram for ILIAS\Notes\InternalDataService:

Public Member Functions

 __construct ()
 
 context (int $obj_id=0, int $sub_obj_id=0, string $type="", int $news_id=0, bool $in_repo=true)
 
 note (int $id, Context $context, string $text, int $author, int $type=Note::PRIVATE, ?string $creation_date=null, ?string $update_date=null)
 

Detailed Description

Repository internal data service.

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

Definition at line 27 of file class.InternalDataService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Notes\InternalDataService::__construct ( )

Definition at line 29 of file class.InternalDataService.php.

30  {
31  //$this->..._factory = new ...\DataFactory();
32  }

Member Function Documentation

◆ context()

ILIAS\Notes\InternalDataService::context ( int  $obj_id = 0,
int  $sub_obj_id = 0,
string  $type = "",
int  $news_id = 0,
bool  $in_repo = true 
)
Parameters
int$obj_idilObject ID, 0 for notes without context
int$sub_obj_ide.g. page id
string$typeilObject type or type of sub object ("pd" for dashboard without context)
int$news_idnews id (news must be attached to same ilObject ID)
int$news_ide.g. false for portfolios or "pd" notes

Definition at line 41 of file class.InternalDataService.php.

References $type.

47  : Context {
48  return new Context(
49  $obj_id,
50  $sub_obj_id,
51  $type,
52  $news_id,
53  $in_repo
54  );
55  }
$type

◆ note()

ILIAS\Notes\InternalDataService::note ( int  $id,
Context  $context,
string  $text,
int  $author,
int  $type = Note::PRIVATE,
?string  $creation_date = null,
?string  $update_date = null 
)

Definition at line 57 of file class.InternalDataService.php.

References $type.

65  : Note {
66  return new Note(
67  $id,
68  $context,
69  $text,
70  $author,
71  $type,
72  $creation_date,
73  $update_date
74  );
75  }
$context
Definition: webdav.php:29
$type
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

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