ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
◀ ilDoc Overview
class.VideoItem.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\MediaCast\Video
;
20
24
class
VideoItem
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
}
ILIAS\MediaCast\Video\VideoItem
Definition:
class.VideoItem.php:25
ILIAS\MediaCast\Video\VideoItem\getTime
getTime()
Definition:
class.VideoItem.php:82
ILIAS\MediaCast\Video\VideoItem\getTitle
getTitle()
Definition:
class.VideoItem.php:72
ILIAS\MediaCast\Video\VideoItem\$news_id
int $news_id
Definition:
class.VideoItem.php:35
ILIAS\MediaCast\Video\VideoItem\getMime
getMime()
Definition:
class.VideoItem.php:87
ILIAS\MediaCast\Video\VideoItem\$duration
int $duration
Definition:
class.VideoItem.php:34
ILIAS\MediaCast\Video\VideoItem\getPlayingTime
getPlayingTime()
Definition:
class.VideoItem.php:102
ILIAS\MediaCast\Video\VideoItem\$is_local
bool $is_local
Definition:
class.VideoItem.php:36
ILIAS\MediaCast\Video\VideoItem\getNewsId
getNewsId()
Definition:
class.VideoItem.php:117
ILIAS\MediaCast\Video\VideoItem\__construct
__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,)
Definition:
class.VideoItem.php:38
ILIAS\MediaCast\Video\VideoItem\$playing_time
string $playing_time
Definition:
class.VideoItem.php:33
ILIAS\MediaCast\Video\VideoItem\$id
string $id
Definition:
class.VideoItem.php:26
ILIAS\MediaCast\Video\VideoItem\$time
int $time
Definition:
class.VideoItem.php:28
ILIAS\MediaCast\Video\VideoItem\$description
string $description
Definition:
class.VideoItem.php:32
ILIAS\MediaCast\Video\VideoItem\$title
string $title
Definition:
class.VideoItem.php:27
ILIAS\MediaCast\Video\VideoItem\$resource
string $resource
Definition:
class.VideoItem.php:30
ILIAS\MediaCast\Video\VideoItem\getDuration
getDuration()
Definition:
class.VideoItem.php:107
ILIAS\MediaCast\Video\VideoItem\getPreviewPic
getPreviewPic()
Definition:
class.VideoItem.php:97
ILIAS\MediaCast\Video\VideoItem\$mime
string $mime
Definition:
class.VideoItem.php:29
ILIAS\MediaCast\Video\VideoItem\getResource
getResource()
Definition:
class.VideoItem.php:92
ILIAS\MediaCast\Video\VideoItem\isLocal
isLocal()
Definition:
class.VideoItem.php:112
ILIAS\MediaCast\Video\VideoItem\getDescription
getDescription()
Definition:
class.VideoItem.php:77
ILIAS\MediaCast\Video\VideoItem\getId
getId()
Definition:
class.VideoItem.php:67
ILIAS\MediaCast\Video\VideoItem\$preview_pic
string $preview_pic
Definition:
class.VideoItem.php:31
ilUtil\getImagePath
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Definition:
class.ilUtil.php:68
ILIAS\MediaCast\Video
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.VideoItem.php:19
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
MediaCast
Video
class.VideoItem.php
Generated on Wed Apr 8 2026 23:05:13 for ILIAS by
1.9.4 (using
Doxyfile
)