Board Class Reference

Inheritance diagram for Board:
BackboneModel

List of all members.

Public Member Functions

 Board ($data)
 getId ()
 getTitle ()
 getDescription ()
 getThreads ()
 create ()
 update ()
 delete ()
 canView ()
 toArray ()
 exists ()
 getCacheId ()
 getUrl ()

Static Public Member Functions

static newFromId ($id)
static getAllBoards ()

Public Attributes

 $id
 $title
 $description

Member Function Documentation

Board::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.

Board::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.

Board::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 Board::getAllBoards (  )  [static]

Returns all Boards available to a user

Returns:
boards An Array of Boards
Board::getCacheId (  ) 

Returns the id of this BackboneModel's cache

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

Reimplemented from BackboneModel.

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

Reimplemented from BackboneModel.

Board::getUrl (  ) 

Returns the url of this Board's page

Returns:
string The url of this Board's page
static Board::newFromId ( id  )  [static]

Returns a new Board from the given id

Parameters:
id $id The id of the Board
Returns:
Board The Board with the given id
Board::toArray (  ) 

Generates and returns an array version of this BackboneModel

Returns:
array Returns an array version of this BackboneModel

Reimplemented from BackboneModel.

Board::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.


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

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1