19declare(strict_types=1);
35 $this->internal_domain = $internal_domain;
36 $this->notes_manager = $internal_domain->notes();
41 bool $incl_sub =
false,
44 if (is_null($author)) {
45 $author = $this->internal_domain->user()->getId();
47 return $this->notes_manager->getNrOfNotesForContext(
57 bool $incl_sub =
false
59 return $this->notes_manager->getNrOfNotesForContext(
72 return $this->notes_manager->getById(
$id);
84 return $this->notes_manager->getNotesForRepositoryObjId(
100 return $this->notes_manager->commentsActive($obj_id);
105 bool $a_activate =
true
107 $this->notes_manager->activateComments($obj_id, $a_activate);
118 return $this->notes_manager->getUserCount($obj_id, $sub_obj_id, $obj_type);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
commentsActive(int $obj_id)
Are comments activated for object?
getUserCount(int $obj_id, int $sub_obj_id, string $obj_type)
How many users have attached a note/comment to a given object?
getNrOfCommentsForContext(Context $context, bool $incl_sub=false)
getAllCommentsForObjId(int $obj_id, string $since="")
Gets all comments of a repo object, incl.
getNrOfNotesForContext(Context $context, bool $incl_sub=false, ?int $author=null)
activateComments(int $obj_id, bool $a_activate=true)
InternalDomainService $internal_domain
NotesManager $notes_manager
__construct(InternalDomainService $internal_domain)
getById(int $id)
Get note by id.
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...
if(!file_exists('../ilias.ini.php'))