ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLearningHistoryFactory Class Reference

Learning history factory. More...

+ Collaboration diagram for ilLearningHistoryFactory:

Public Member Functions

 __construct (ilLearningHistoryService $service)
 Constructor. More...
 
 entry ($achieve_text, $achieve_in_text, $icon_path, $ts, $obj_id, $ref_id=0)
 Create entry. More...
 
 collector ()
 Entry collector. More...
 

Protected Attributes

 $service
 

Detailed Description

Learning history factory.

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

Definition at line 11 of file class.ilLearningHistoryFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilLearningHistoryFactory::__construct ( ilLearningHistoryService  $service)

Constructor.

Definition at line 21 of file class.ilLearningHistoryFactory.php.

References $service.

22  {
23  $this->service = $service;
24  }

Member Function Documentation

◆ collector()

ilLearningHistoryFactory::collector ( )

Entry collector.

Parameters

Definition at line 45 of file class.ilLearningHistoryFactory.php.

46  {
47  return new ilLearningHistoryEntryCollector($this->service);
48  }

◆ entry()

ilLearningHistoryFactory::entry (   $achieve_text,
  $achieve_in_text,
  $icon_path,
  $ts,
  $obj_id,
  $ref_id = 0 
)

Create entry.

Parameters
$title
$icon_path
int$tsunix timestamp
Returns
ilLearningHistoryEntry

Definition at line 34 of file class.ilLearningHistoryFactory.php.

35  {
36  return new ilLearningHistoryEntry($achieve_text, $achieve_in_text, $icon_path, $ts, $obj_id, $ref_id);
37  }

Field Documentation

◆ $service

ilLearningHistoryFactory::$service
protected

Definition at line 16 of file class.ilLearningHistoryFactory.php.

Referenced by __construct().


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