Class Attachment

Description

Attachment Object

An attachment is similar to a page (in that it has a friendly URL), but it differs from a page in that

  • an attachment can not have any children
  • there must be some file associated with the Attachment that will be displayed when the attachment is accessed
Attachments are useful for attaching Word, Excel, PDF, GIF, JPEG, ZIP, MP3 and any other type of data file to a Page.

Located in /core/attachment.class.inc (line 29)


	
			
Variable Summary
Method Summary
Attachment Attachment (mixed $_context)
void Execute ()
void InitFromDatabase (mixed $_parentPageID, mixed $_name)
void InitFromDatabaseByID (mixed $_attachmentID)
void loadFromDBRow (mixed $row)
void parentPage ()
void SaveToDatabase ()
void URL ()
Variables
mixed $attachment_id (line 36)
  • access: public
mixed $attributes (line 41)
  • access: public
Context $context (line 35)
  • var: the current context
  • access: public
mixed $deleted (line 43)
  • access: public
mixed $displayname (line 39)
  • access: public
mixed $name (line 38)
  • access: public
mixed $parentPageID (line 37)
  • access: public
mixed $sortOrdinal (line 42)
  • access: public
mixed $type (line 40)
  • access: public
Methods
Constructor Attachment (line 45)
  • access: public
Attachment Attachment (mixed $_context)
Execute (line 57)

execute (show) this attachment based on the attributes

  • access: public
void Execute ()
InitFromDatabase (line 71)
  • access: public
void InitFromDatabase (mixed $_parentPageID, mixed $_name)
InitFromDatabaseByID (line 100)
  • access: public
void InitFromDatabaseByID (mixed $_attachmentID)
loadFromDBRow (line 121)
  • access: public
void loadFromDBRow (mixed $row)
parentPage (line 160)
  • access: public
void parentPage ()
SaveToDatabase (line 173)
  • access: public
void SaveToDatabase ()
URL (line 136)
  • access: public
void URL ()

Documentation generated on Tue, 4 Oct 2005 21:58:48 -0700 by phpDocumentor 1.3.0RC3