CMS  Version 3.9
DocumentDownload Class Reference

Inherits DataItem.

Public Member Functions

 Document ()
 
 User ()
 
 DocumentDownload ()
 

Public Attributes

 $fields
 
 $relations
 

Detailed Description

Definition at line 39 of file document_download.inc.

Member Function Documentation

◆ Document()

DocumentDownload::Document ( )

Definition at line 53 of file document_download.inc.

54  {
55  return $this->getRelated(Document);
56  }
This class maps the publication table.
Definition: document.inc:43

◆ DocumentDownload()

DocumentDownload::DocumentDownload ( )

Definition at line 65 of file document_download.inc.

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

◆ User()

DocumentDownload::User ( )

Definition at line 58 of file document_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

Member Data Documentation

◆ $fields

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

Definition at line 41 of file document_download.inc.

◆ $relations

DocumentDownload::$relations
Initial value:
= array( "Document" => Topic,
"User" => "")
This class maps the topic table.
Definition: topic.inc:38

Definition at line 49 of file document_download.inc.


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