Thread Class Reference

Inheritance diagram for Thread:
BackboneModel

List of all members.

Public Member Functions

 Thread ($data)
 getId ()
 getBoardId ()
 getBoard ()
 getThreadOwner ()
 getUsers ()
 getRole ()
 getTitle ()
 getPosts ()
 getDateCreated ()
 setId ($id)
 setUserId ($id)
 setUsers ($users)
 setTitle ($title)
 setDateCreated ($date)
 setRoles ($data)
 create ()
 update ()
 delete ()
 canView ()
 canEdit ()
 addUser ($person)
 toArray ()
 exists ()
 getCacheId ()
 getUrl ()

Static Public Member Functions

static newFromId ($id)
static getAllThreads ($board_id=0)

Public Attributes

 $id
 $board_id
 $stickied
 $user_id
 $users = array()
 $roles = array()
 $title
 $posts = array()
 $date_created

Member Function Documentation

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

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

Thread::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 Thread::getAllThreads ( board_id = 0  )  [static]

Returns all Threads available to a user

Returns:
threads An Array of Threads
Thread::getCacheId (  ) 

Returns the id of this BackboneModel's cache

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

Reimplemented from BackboneModel.

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

Reimplemented from BackboneModel.

Thread::getUrl (  ) 

Returns the url of this Paper's page

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

Returns a new Thread from the given id

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

Generates and returns an array version of this BackboneModel

Returns:
array Returns an array version of this BackboneModel

Reimplemented from BackboneModel.

Thread::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