ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDataService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace 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 int $recipient = 0
66 ): Note {
67 return new Note(
68 $id,
70 $text,
71 $author,
72 $type,
73 $creation_date,
74 $update_date,
75 $recipient
76 );
77 }
78}
$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, int $recipient=0)
context(int $obj_id=0, int $sub_obj_id=0, string $type="", int $news_id=0, bool $in_repo=true)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$context
Definition: webdav.php:31