ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MediaCast\Video\VideoItem Class Reference
+ Collaboration diagram for ILIAS\MediaCast\Video\VideoItem:

Public Member Functions

 __construct (string $id, string $title, int $time, string $mime, string $resource, string $preview_pic, string $description="", string $playing_time="", int $duration=0)
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getTime ()
 
 getMime ()
 
 getResource ()
 
 getPreviewPic ()
 
 getPlayingTime ()
 
 getDuration ()
 

Protected Attributes

string $id = ""
 
string $title = ""
 
int $time = 0
 
string $mime = ""
 
string $resource = ""
 
string $preview_pic = ""
 
string $description = ""
 
string $playing_time = ""
 
int $duration = 0
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.VideoItem.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MediaCast\Video\VideoItem::__construct ( string  $id,
string  $title,
int  $time,
string  $mime,
string  $resource,
string  $preview_pic,
string  $description = "",
string  $playing_time = "",
int  $duration = 0 
)

Definition at line 36 of file class.VideoItem.php.

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 }
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

References ILIAS\MediaCast\Video\VideoItem\$description, ILIAS\MediaCast\Video\VideoItem\$duration, ILIAS\MediaCast\Video\VideoItem\$id, ILIAS\MediaCast\Video\VideoItem\$mime, ILIAS\MediaCast\Video\VideoItem\$playing_time, ILIAS\MediaCast\Video\VideoItem\$preview_pic, ILIAS\MediaCast\Video\VideoItem\$resource, ILIAS\MediaCast\Video\VideoItem\$time, ILIAS\MediaCast\Video\VideoItem\$title, and ilUtil\getImagePath().

+ Here is the call graph for this function:

Member Function Documentation

◆ getDescription()

ILIAS\MediaCast\Video\VideoItem::getDescription ( )

Definition at line 71 of file class.VideoItem.php.

71 : string
72 {
73 return $this->description;
74 }

References ILIAS\MediaCast\Video\VideoItem\$description.

◆ getDuration()

ILIAS\MediaCast\Video\VideoItem::getDuration ( )

Definition at line 101 of file class.VideoItem.php.

101 : int
102 {
103 return $this->duration;
104 }

References ILIAS\MediaCast\Video\VideoItem\$duration.

◆ getId()

ILIAS\MediaCast\Video\VideoItem::getId ( )

Definition at line 61 of file class.VideoItem.php.

61 : string
62 {
63 return $this->id;
64 }

References ILIAS\MediaCast\Video\VideoItem\$id.

◆ getMime()

ILIAS\MediaCast\Video\VideoItem::getMime ( )

Definition at line 81 of file class.VideoItem.php.

81 : string
82 {
83 return $this->mime;
84 }

References ILIAS\MediaCast\Video\VideoItem\$mime.

◆ getPlayingTime()

ILIAS\MediaCast\Video\VideoItem::getPlayingTime ( )

Definition at line 96 of file class.VideoItem.php.

96 : string
97 {
99 }

References ILIAS\MediaCast\Video\VideoItem\$playing_time.

◆ getPreviewPic()

ILIAS\MediaCast\Video\VideoItem::getPreviewPic ( )

Definition at line 91 of file class.VideoItem.php.

91 : string
92 {
93 return $this->preview_pic;
94 }

References ILIAS\MediaCast\Video\VideoItem\$preview_pic.

◆ getResource()

ILIAS\MediaCast\Video\VideoItem::getResource ( )

Definition at line 86 of file class.VideoItem.php.

86 : string
87 {
88 return $this->resource;
89 }

References ILIAS\MediaCast\Video\VideoItem\$resource.

◆ getTime()

ILIAS\MediaCast\Video\VideoItem::getTime ( )

Definition at line 76 of file class.VideoItem.php.

76 : int
77 {
78 return $this->time;
79 }

References ILIAS\MediaCast\Video\VideoItem\$time.

◆ getTitle()

ILIAS\MediaCast\Video\VideoItem::getTitle ( )

Definition at line 66 of file class.VideoItem.php.

66 : string
67 {
68 return $this->title;
69 }

References ILIAS\MediaCast\Video\VideoItem\$title.

Field Documentation

◆ $description

string ILIAS\MediaCast\Video\VideoItem::$description = ""
protected

◆ $duration

int ILIAS\MediaCast\Video\VideoItem::$duration = 0
protected

◆ $id

string ILIAS\MediaCast\Video\VideoItem::$id = ""
protected

◆ $mime

string ILIAS\MediaCast\Video\VideoItem::$mime = ""
protected

◆ $playing_time

string ILIAS\MediaCast\Video\VideoItem::$playing_time = ""
protected

◆ $preview_pic

string ILIAS\MediaCast\Video\VideoItem::$preview_pic = ""
protected

◆ $resource

string ILIAS\MediaCast\Video\VideoItem::$resource = ""
protected

◆ $time

int ILIAS\MediaCast\Video\VideoItem::$time = 0
protected

◆ $title

string ILIAS\MediaCast\Video\VideoItem::$title = ""
protected

The documentation for this class was generated from the following file: