ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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
36 public function __construct(
37 string $id,
38 string $title,
39 int $time,
40 string $mime,
41 string $resource,
42 string $preview_pic,
43 string $description = "",
44 string $playing_time = "",
45 int $duration = 0
46 ) {
47 $this->id = $id;
48 $this->title = $title;
49 $this->time = $time;
50 $this->mime = $mime;
51 $this->resource = $resource;
52 $this->preview_pic = $preview_pic;
53 if ($this->preview_pic == "") {
54 $this->preview_pic = \ilUtil::getImagePath("media/mcst_preview.svg");
55 }
56 $this->description = $description;
57 $this->playing_time = $playing_time;
58 $this->duration = $duration;
59 }
60
61 public function getId(): string
62 {
63 return $this->id;
64 }
65
66 public function getTitle(): string
67 {
68 return $this->title;
69 }
70
71 public function getDescription(): string
72 {
73 return $this->description;
74 }
75
76 public function getTime(): int
77 {
78 return $this->time;
79 }
80
81 public function getMime(): string
82 {
83 return $this->mime;
84 }
85
86 public function getResource(): string
87 {
88 return $this->resource;
89 }
90
91 public function getPreviewPic(): string
92 {
93 return $this->preview_pic;
94 }
95
96 public function getPlayingTime(): string
97 {
99 }
100
101 public function getDuration(): int
102 {
103 return $this->duration;
104 }
105}
__construct(string $id, string $title, int $time, string $mime, string $resource, string $preview_pic, string $description="", string $playing_time="", int $duration=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...