Posting Class Reference

Inheritance diagram for Posting:
BackboneModel BSIPosting ElitePosting EventPosting NewsPosting

List of all members.

Public Member Functions

 Posting ($data)
 getId ()
 getUserId ()
 getUser ()
 getVisibility ()
 getLanguage ()
 getTitle ()
 getTitleFr ()
 getArticleLink ()
 getStartDate ()
 getEndDate ()
 getSummary ()
 getSummaryFr ()
 getImage ($n=0)
 getImageMime ($n=0)
 getImageMD5 ($n=0)
 getImageUrl ($n=0)
 getImageCaption ()
 getImageCaptionFr ()
 getPreviewCode ()
 getCreated ()
 getModified ()
 isDeleted ()
 generatePreviewCode ()
 getUrl ()
 isAllowedToEdit ()
 isAllowedToView ()
 saveImage ($n, $image)
 toArray ()
 create ()
 update ()
 delete ()
 exists ()
 getCacheId ()

Static Public Member Functions

static newFromId ($id)
static getAllPostings ()
static getCurrentPostings ()
static getDeletedPostings ()
static getNewPostings ($date)
static generateImageCache ()
static isAllowedToCreate ()

Public Attributes

 $id
 $userId
 $visibility
 $language
 $title
 $titleFr
 $articleLink
 $startDate
 $endDate
 $summary
 $summaryFr
 $image
 $imageCaption
 $imageCaptionFr
 $previewCode
 $created
 $modified
 $deleted

Static Public Attributes

static $dbTable = ""
static $imageCache = null
static $cache = array()

Member Function Documentation

Posting::create (  ) 

Creates a new record in the DB for this BackboneModel

Returns:
boolean Returns whether or not the creation was successful or not

Reimplemented from BackboneModel.

Reimplemented in ElitePosting, BSIPosting, EventPosting, and NewsPosting.

Posting::delete (  ) 

Deletes the record in the DB for this BackboneModel

Returns:
boolean Returns whether or not the deletion was successful or not

Reimplemented from BackboneModel.

Posting::exists (  ) 

Returns whether or not this BackboneModel exists or not

Returns:
boolean Returns whether or not this BackboneModel exists or not

Reimplemented from BackboneModel.

static Posting::getAllPostings (  )  [static]

Returns an array of all Postings which this user is able to view

Posting::getCacheId (  ) 

Returns the id of this BackboneModel's cache

Returns:
string Returns the id of this BackboneModel's cache

Reimplemented from BackboneModel.

static Posting::getCurrentPostings (  )  [static]

Returns an array of Postings which have not yet expired

static Posting::getDeletedPostings (  )  [static]

Returns an array of Postings which have been deleted

Posting::getId (  ) 
Returns:
int Returns the id of this BackboneModel

Reimplemented from BackboneModel.

static Posting::getNewPostings ( date  )  [static]

Returns an array of Postings that have been modified since the specified date

Posting::getUrl (  ) 

Returns the url of this Posting's page

Returns:
string The url of this Posting's page

Reimplemented in ElitePosting.

Posting::toArray (  ) 

Generates and returns an array version of this BackboneModel

Returns:
array Returns an array version of this BackboneModel

Reimplemented from BackboneModel.

Reimplemented in ElitePosting, BSIPosting, EventPosting, and NewsPosting.

Posting::update (  ) 

Updates the record in the DB for this BackboneModel

Returns:
boolean Returns whether or not the update was successful or not

Reimplemented from BackboneModel.

Reimplemented in ElitePosting, BSIPosting, EventPosting, and NewsPosting.


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

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1