ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilLearningHistoryFactory.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
12 {
16  protected $service;
17 
22  {
23  $this->service = $service;
24  }
25 
34  public function entry($achieve_text, $achieve_in_text, $icon_path, $ts, $obj_id, $ref_id = 0)
35  {
36  return new ilLearningHistoryEntry($achieve_text, $achieve_in_text, $icon_path, $ts, $obj_id, $ref_id);
37  }
38 
45  public function collector()
46  {
47  return new ilLearningHistoryEntryCollector($this->service);
48  }
49 }
entry($achieve_text, $achieve_in_text, $icon_path, $ts, $obj_id, $ref_id=0)
Create entry.
__construct(ilLearningHistoryService $service)
Constructor.