ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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().

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("mcst_preview.svg");
55  }
56  $this->description = $description;
57  $this->playing_time = $playing_time;
58  $this->duration = $duration;
59  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ 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.

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

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

◆ getDuration()

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

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

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

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

◆ getId()

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

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

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

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

◆ getMime()

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

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

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

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

◆ getPlayingTime()

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

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

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

96  : string
97  {
98  return $this->playing_time;
99  }

◆ getPreviewPic()

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

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

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

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

◆ getResource()

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

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

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

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

◆ getTime()

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

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

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

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

◆ getTitle()

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

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

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

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

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: