ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
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, bool $is_local=false, int $news_id=0,)
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getTime ()
 
 getMime ()
 
 getResource ()
 
 getPreviewPic ()
 
 getPlayingTime ()
 
 getDuration ()
 
 isLocal ()
 
 getNewsId ()
 

Protected Attributes

string $id = ""
 
string $title = ""
 
int $time = 0
 
string $mime = ""
 
string $resource = ""
 
string $preview_pic = ""
 
string $description = ""
 
string $playing_time = ""
 
int $duration = 0
 
int $news_id = 0
 
bool $is_local = false
 

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,
bool  $is_local = false,
int  $news_id = 0 
)

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

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 }
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\$is_local, ILIAS\MediaCast\Video\VideoItem\$mime, ILIAS\MediaCast\Video\VideoItem\$news_id, 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 77 of file class.VideoItem.php.

77 : string
78 {
79 return $this->description;
80 }

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

◆ getDuration()

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

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

107 : int
108 {
109 return $this->duration;
110 }

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

◆ getId()

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

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

67 : string
68 {
69 return $this->id;
70 }

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

◆ getMime()

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

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

87 : string
88 {
89 return $this->mime;
90 }

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

◆ getNewsId()

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

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

117 : int
118 {
119 return $this->news_id;
120 }

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

◆ getPlayingTime()

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

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

102 : string
103 {
104 return $this->playing_time;
105 }

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

◆ getPreviewPic()

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

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

97 : string
98 {
99 return $this->preview_pic;
100 }

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

◆ getResource()

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

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

92 : string
93 {
94 return $this->resource;
95 }

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

◆ getTime()

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

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

82 : int
83 {
84 return $this->time;
85 }

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

◆ getTitle()

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

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

72 : string
73 {
74 return $this->title;
75 }

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

◆ isLocal()

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

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

112 : bool
113 {
114 return $this->is_local;
115 }

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

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

◆ $is_local

bool ILIAS\MediaCast\Video\VideoItem::$is_local = false
protected

◆ $mime

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

◆ $news_id

int ILIAS\MediaCast\Video\VideoItem::$news_id = 0
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: