ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.VideoItem.php
Go to the documentation of this file.
1<?php
2
20
25{
26 protected string $id = "";
27 protected string $title = "";
28 protected int $time = 0;
29 protected string $mime = "";
30 protected string $resource = "";
31 protected string $preview_pic = "";
32 protected string $description = "";
33 protected string $playing_time = "";
34 protected int $duration = 0;
35 protected int $news_id = 0;
36 protected bool $is_local = false;
37
38 public function __construct(
39 string $id,
40 string $title,
41 int $time,
42 string $mime,
43 string $resource,
44 string $preview_pic,
45 string $description = "",
46 string $playing_time = "",
47 int $duration = 0,
48 bool $is_local = false,
49 int $news_id = 0,
50 ) {
51 $this->id = $id;
52 $this->title = $title;
53 $this->time = $time;
54 $this->mime = $mime;
55 $this->is_local = $is_local;
56 $this->news_id = $news_id;
57 $this->resource = $resource;
58 $this->preview_pic = $preview_pic;
59 if ($this->preview_pic == "") {
60 $this->preview_pic = \ilUtil::getImagePath("media/mcst_preview.svg");
61 }
62 $this->description = $description;
63 $this->playing_time = $playing_time;
64 $this->duration = $duration;
65 }
66
67 public function getId(): string
68 {
69 return $this->id;
70 }
71
72 public function getTitle(): string
73 {
74 return $this->title;
75 }
76
77 public function getDescription(): string
78 {
79 return $this->description;
80 }
81
82 public function getTime(): int
83 {
84 return $this->time;
85 }
86
87 public function getMime(): string
88 {
89 return $this->mime;
90 }
91
92 public function getResource(): string
93 {
94 return $this->resource;
95 }
96
97 public function getPreviewPic(): string
98 {
99 return $this->preview_pic;
100 }
101
102 public function getPlayingTime(): string
103 {
104 return $this->playing_time;
105 }
106
107 public function getDuration(): int
108 {
109 return $this->duration;
110 }
111
112 public function isLocal(): bool
113 {
114 return $this->is_local;
115 }
116
117 public function getNewsId(): int
118 {
119 return $this->news_id;
120 }
121}
__construct(string $id, string $title, int $time, string $mime, string $resource, string $preview_pic, string $description="", string $playing_time="", int $duration=0, bool $is_local=false, int $news_id=0,)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...