CMS  Version 3.9
Video Class Reference

Inherits DataItem.

Public Member Functions

 User ()
 
 VideoGallery ()
 
 getFormat ()
 
 Video ()
 

Public Attributes

 $fields
 
 $relations
 

Detailed Description

Definition at line 41 of file video.inc.

Member Function Documentation

◆ getFormat()

Video::getFormat ( )

Definition at line 73 of file video.inc.

74  {
75  $extension = substr($this->video_file, strrpos($this->video_file, ".") + 1);
76  return strtoupper($extension);
77  }
$extension
Definition: upload.inc:70

◆ User()

Video::User ( )

Definition at line 62 of file video.inc.

63  {
64  $mgr = new UserManager();
65  return $mgr->getUser($this->user_id);
66  }
Provides the interface to the user model for the application.
$feedback user_id
Definition: save.inc:14

◆ Video()

Video::Video ( )

Definition at line 79 of file video.inc.

80  {
81  $this->table = "video";
82  $this->primary_key = "video_id";
83 
84  $mgr = new UserManager();
85  $this->relations["User"] = $mgr->getUserClass();
86 
87  $this->DataItem(func_get_args());
88  }

◆ VideoGallery()

Video::VideoGallery ( )

Definition at line 68 of file video.inc.

69  {
70  return $this->getRelated(VideoGallery);
71  }

Member Data Documentation

◆ $fields

Video::$fields
Initial value:
= array("video_id" => Number,
"title" => String,
"description" => HTML,
"video_file" => String,
"width" => Number,
"height" => Number,
"image_file" => String,
"user_id" => Number,
"last_modified" => Timestamp,
"sort_order" => Number,
"video_gallery_id" => Number)

Definition at line 45 of file video.inc.

◆ $relations

Video::$relations
Initial value:
= array("User" => "",
"VideoGallery" => VideoGallery)

Definition at line 59 of file video.inc.


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