ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.InternalDataService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Notes;
22 
28 {
29  public function __construct()
30  {
31  //$this->..._factory = new ...\DataFactory();
32  }
33 
41  public function context(
42  int $obj_id = 0,
43  int $sub_obj_id = 0,
44  string $type = "",
45  int $news_id = 0,
46  bool $in_repo = true
47  ): Context {
48  return new Context(
49  $obj_id,
50  $sub_obj_id,
51  $type,
52  $news_id,
53  $in_repo
54  );
55  }
56 
57  public function note(
58  int $id,
60  string $text,
61  int $author,
62  int $type = Note::PRIVATE,
63  ?string $creation_date = null,
64  ?string $update_date = null
65  ): Note {
66  return new Note(
67  $id,
68  $context,
69  $text,
70  $author,
71  $type,
72  $creation_date,
73  $update_date
74  );
75  }
76 }
$context
Definition: webdav.php:29
$type
context(int $obj_id=0, int $sub_obj_id=0, string $type="", int $news_id=0, bool $in_repo=true)
Repository internal data service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
note(int $id, Context $context, string $text, int $author, int $type=Note::PRIVATE, ?string $creation_date=null, ?string $update_date=null)