ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.InternalDataService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Blog;
22
23use ilDateTime;
25
30{
31 protected static array $instance = [];
32
33 // protected ...\DataFactory ..._factory;
34
35 public function __construct()
36 {
37 //$this->..._factory = new ...\DataFactory();
38 }
39
40 public function settings(
41 int $id,
42 bool $profile_picture,
43 string $bg_color,
44 string $font_color,
45 bool $rss_active,
46 bool $approval,
47 bool $abs_shorten,
48 int $abs_shorten_len,
49 bool $abs_image,
50 int $abs_img_width,
51 int $abs_img_height,
52 bool $keywords,
53 bool $authors,
54 int $nav_mode,
55 int $nav_list_mon_with_post,
56 int $nav_list_mon,
57 int $ov_post,
58 array $nav_order = []
59 ): Settings\Settings {
60 return new Settings\Settings(
61 $id,
62 $profile_picture,
63 $bg_color,
64 $font_color,
65 $rss_active,
66 $approval,
67 $abs_shorten,
68 $abs_shorten_len,
69 $abs_image,
70 $abs_img_width,
71 $abs_img_height,
72 $keywords,
73 $authors,
74 $nav_mode,
75 $nav_list_mon_with_post,
76 $nav_list_mon,
77 $ov_post,
78 $nav_order
79 );
80 }
81
82 public function posting(
83 int $id,
84 int $blog_id,
85 string $title,
86 ilDateTime $created,
87 int $author,
88 bool $approved,
89 ?ilDateTime $last_withdrawn,
90 bool $active = true,
91 ): Posting {
92 return new Posting(
93 $id,
94 $blog_id,
95 $title,
96 $created,
97 $author,
98 $approved,
99 $last_withdrawn,
100 $active,
101 );
102 }
103}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
posting(int $id, int $blog_id, string $title, ilDateTime $created, int $author, bool $approved, ?ilDateTime $last_withdrawn, bool $active=true,)
settings(int $id, bool $profile_picture, string $bg_color, string $font_color, bool $rss_active, bool $approval, bool $abs_shorten, int $abs_shorten_len, bool $abs_image, int $abs_img_width, int $abs_img_height, bool $keywords, bool $authors, int $nav_mode, int $nav_list_mon_with_post, int $nav_list_mon, int $ov_post, array $nav_order=[])
@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...