CMS  Version 3.9
Attachment Class Reference

Inherits DataItem.

Public Member Functions

 User ()
 
 getIcon ()
 Get the associated document icon for this attachment. More...
 

Public Attributes

 $table = "attachment"
 
 $primary_key = "attachment_id"
 
 $fields
 
 $relations = array("User" => "")
 

Detailed Description

Definition at line 39 of file attachment.inc.

Member Function Documentation

◆ getIcon()

Attachment::getIcon ( )

Get the associated document icon for this attachment.

Returns
string path for the document icon

Definition at line 65 of file attachment.inc.

66  {
67  return getDocIcon($this->filename);
68  }
$attachment filename
Definition: upload.inc:87

◆ User()

Attachment::User ( )

Definition at line 55 of file attachment.inc.

56  {
57  $mgr = new UserManager();
58  return $this->getRelated($mgr->getUserClass());
59  }
Provides the interface to the user model for the application.

Member Data Documentation

◆ $fields

Attachment::$fields
Initial value:
= array("attachment_id" => Number,
"user_id" => Number,
"filename" => String,
"local_filename" => String,
"last_modified" => Timestamp,
"file_size" => String)

Definition at line 45 of file attachment.inc.

◆ $primary_key

Attachment::$primary_key = "attachment_id"

Definition at line 42 of file attachment.inc.

◆ $relations

Attachment::$relations = array("User" => "")

Definition at line 53 of file attachment.inc.

◆ $table

Attachment::$table = "attachment"

Definition at line 41 of file attachment.inc.


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