ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
22
23use ilDateTime;
38
39class Factory implements InfoFactoryInterface
40{
41 public function iterator(): IteratorFactoryInterface
42 {
43 return new IteratorFactory();
44 }
45
46 public function lp(
47 int $user_id,
48 int $object_id,
49 int $lp_status,
50 int $percentage,
51 int $lp_mode,
52 int $spent_seconds,
53 ilDateTime $status_changed,
54 int $visits,
55 int $read_count,
56 bool $has_percentage
57 ): LPInfoInterface {
58 return new LPInfo(
60 $object_id,
61 $lp_status,
62 $percentage,
63 $lp_mode,
64 $spent_seconds,
65 $status_changed,
66 $visits,
67 $read_count,
68 $has_percentage
69 );
70 }
71
72 public function combined(
73 LPInterface $lp_info,
74 ObjectDataInfoInterface $object_data_info
75 ): CombinedInfoInterface {
76 return new CombinedInfo(
77 $lp_info,
78 $object_data_info
79 );
80 }
81
82 public function objectData(
83 int $object_id,
84 string $title,
85 string $description,
86 string $type
87 ): ObjectDataInfoInterface {
88 return new ObjectDataInfo(
89 $object_id,
90 $title,
91 $description,
92 $type
93 );
94 }
95
96 public function view(
97 ObjectDataIteratorInterface $object_data_iterator,
98 LPIteratorInterface $lp_iterator,
99 CombinedIteratorInterface $combined_iterator
100 ): ViewInfoInterface {
101 return new ViewInfo(
102 $object_data_iterator,
103 $lp_iterator,
104 $combined_iterator
105 );
106 }
107}
combined(LPInterface $lp_info, ObjectDataInfoInterface $object_data_info)
Definition: Factory.php:72
view(ObjectDataIteratorInterface $object_data_iterator, LPIteratorInterface $lp_iterator, CombinedIteratorInterface $combined_iterator)
Definition: Factory.php:96
lp(int $user_id, int $object_id, int $lp_status, int $percentage, int $lp_mode, int $spent_seconds, ilDateTime $status_changed, int $visits, int $read_count, bool $has_percentage)
Definition: Factory.php:46
objectData(int $object_id, string $title, string $description, string $type)
Definition: Factory.php:82
@classDescription Date and time handling
return['3gp', '7z', 'ai', 'aif', 'aifc', 'aiff', 'au', 'arw', 'avi', 'backup', 'bak', 'bas', 'bpmn', 'bpmn2', 'bmp', 'bib', 'bibtex', 'bz', 'bz2', 'c', 'c++', 'cc', 'cct', 'cdf', 'cer', 'class', 'cls', 'conf', 'cpp', 'crt', 'crs', 'crw', 'cr2', 'css', 'cst', 'csv', 'cur', 'db', 'dcr', 'des', 'dng', 'doc', 'docx', 'dot', 'dotx', 'dtd', 'dvi', 'el', 'eps', 'epub', 'f', 'f77', 'f90', 'flv', 'for', 'g3', 'gif', 'gl', 'gan', 'ggb', 'gsd', 'gsm', 'gtar', 'gz', 'gzip', 'h', 'hpp', 'htm', 'html', 'htmls', 'ibooks', 'ico', 'ics', 'ini', 'ipynb', 'java', 'jbf', 'jpeg', 'jpg', 'js', 'jsf', 'jso', 'json', 'latex', 'lang', 'less', 'log', 'lsp', 'ltx', 'm1v', 'm2a', 'm2v', 'm3u', 'm4a', 'm4v', 'markdown', 'm', 'mat', 'md', 'mdl', 'mdown', 'mid', 'min', 'midi', 'mobi', 'mod', 'mov', 'movie', 'mp2', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'mph', 'mpga', 'mpp', 'mpt', 'mpv', 'mpx', 'mv', 'mw', 'mv4', 'nb', 'nbp', 'nef', 'nif', 'niff', 'obj', 'obm', 'odt', 'ods', 'odp', 'odg', 'odf', 'oga', 'ogg', 'ogv', 'old', 'p', 'pas', 'pbm', 'pcl', 'pct', 'pcx', 'pdf', 'pgm', 'pic', 'pict', 'png', 'por', 'pov', 'project', 'properties', 'ppa', 'ppm', 'pps', 'ppsx', 'ppt', 'pptx', 'ppz', 'ps', 'psd', 'pwz', 'qt', 'qtc', 'qti', 'qtif', 'r', 'ra', 'ram', 'rar', 'rast', 'rda', 'rev', 'rexx', 'ris', 'rf', 'rgb', 'rm', 'rmd', 'rmi', 'rmm', 'rmp', 'rt', 'rtf', 'rtx', 'rv', 's', 's3m', 'sav', 'sbs', 'sec', 'sdml', 'sgm', 'sgml', 'smi', 'smil', 'srt', 'sps', 'spv', 'stl', 'svg', 'swa', 'swf', 'swz', 'tar', 'tex', 'texi', 'texinfo', 'text', 'tgz', 'tif', 'tiff', 'ttf', 'txt', 'tmp', 'uvproj', 'vdf', 'vimeo', 'viv', 'vivo', 'vrml', 'vsdx', 'vtt', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...