CMS  Version 3.9
VideoDownload Class Reference

Inherits DataItem.

Public Member Functions

 Video ()
 
 User ()
 
 VideoDownload ()
 

Public Attributes

 $fields
 
 $relations
 

Detailed Description

Definition at line 39 of file video_download.inc.

Member Function Documentation

◆ User()

VideoDownload::User ( )

Definition at line 58 of file video_download.inc.

59  {
60  if (!$this->user_id) return null;
61  $mgr = new UserManager();
62  return $mgr->getUser($this->user_id);
63  }
Provides the interface to the user model for the application.
$feedback user_id
Definition: save.inc:14

◆ Video()

VideoDownload::Video ( )

Definition at line 53 of file video_download.inc.

54  {
55  return $this->getRelated(Video);
56  }
Definition: video.inc:42

◆ VideoDownload()

VideoDownload::VideoDownload ( )

Definition at line 65 of file video_download.inc.

66  {
67  $this->primary_key = "download_id";
68  $this->table = "video_download";
69 
70  $this->DataItem(func_get_args());
71  }

Member Data Documentation

◆ $fields

VideoDownload::$fields
Initial value:
= array("download_id" => Number,
"video_id" => Number,
"download_date" => Timestamp,
"user_id" => Number)

Definition at line 41 of file video_download.inc.

◆ $relations

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

Definition at line 49 of file video_download.inc.


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