Inheritance diagram for BaseThread:

The thread object handles drawing comment threads for the associate BaseObject. RSS, threading, etc are all supported.
Definition at line 10 of file base-thread.inc.php.
Public Member Functions | |
| __construct ($contentId, $class, $table=null, $objectType=null) | |
| this is our construtor! | |
| getMainPageXml () | |
| get our main page xml. | |
| initMainPage () | |
| prep our main main page... | |
| drawMainPage () | |
| draw our main page, which is the comment table | |
| factory ($data=null) | |
| Creates a new comment of our type... | |
| delete () | |
| deletes our comment thread. | |
| getCommentCount ($ids=null) | |
| gets the count of comments in this thread or multiple threads. | |
| drawCommentSummary () | |
| draws a summary of the comments... | |
| drawCommentTable () | |
| This draws teh comment table. | |
| getComments () | |
| This gets all the comments for this content id. | |
| drawComments () | |
| this draws all the comments in teh thread. | |
| initSearchPage () | |
| this initializes teh rss page. | |
| generateRss ($params=array()) | |
| this genearates the rss object. | |
| getSearchParamXml () | |
| add content id as required parameter. | |
Public Attributes | |
| $ContentClass | |
| private The name of the class that we're doing comments for. | |
| $count = null | |
| public the count of comments in teh thread. | |
Private Attributes | |
| $contentId | |
| private The id of the content the thread is for. | |
|
||||||||||||||||||||
|
this is our construtor!
Definition at line 35 of file base-thread.inc.php. |
|
|
deletes our comment thread.
Definition at line 97 of file base-thread.inc.php. References ObjectManager::search(). |
|
|
this draws all the comments in teh thread.
Definition at line 195 of file base-thread.inc.php. References getComments(). Referenced by drawCommentTable(). |
|
|
draws a summary of the comments... basically how many comments with a link to view them. wrapped in a span with class of 'commentSummary' Definition at line 146 of file base-thread.inc.php. References getCommentCount(), BaseModule::getUrl(), and Util::pluralize(). |
|
|
This draws teh comment table. It's wrapped in a div with id of 'commentContainer' if useRss == true, it will also draw a comment rss feed link. Definition at line 161 of file base-thread.inc.php. References drawComments(), and ObjectManager::getRssLink(). Referenced by drawMainPage(). |
|
|
draw our main page, which is the comment table
Reimplemented from BaseModule. Definition at line 79 of file base-thread.inc.php. References drawCommentTable(). |
|
|
Creates a new comment of our type...
Reimplemented from ObjectManager. Definition at line 89 of file base-thread.inc.php. |
|
|
this genearates the rss object. The link goes to the content view page and the title is the Config::get('site_name') $class Comment Thread Definition at line 215 of file base-thread.inc.php. References Config::get(), and BaseModule::getUrl(). |
|
|
gets the count of comments in this thread or multiple threads.
Definition at line 114 of file base-thread.inc.php. References dbFetchAssoc(), dbGetNumRows(), and dbQuery(). Referenced by drawCommentSummary(). |
|
|
This gets all the comments for this content id.
Definition at line 185 of file base-thread.inc.php. References ObjectManager::search(). Referenced by drawComments(). |
|
|
get our main page xml. we want to display the comment thread for the object Reimplemented from BaseModule. Definition at line 59 of file base-thread.inc.php. |
|
|
add content id as required parameter. this means you can only get comments for an individual object
Reimplemented from ObjectManager. Definition at line 231 of file base-thread.inc.php. |
|
|
prep our main main page... set content id Reimplemented from ObjectManager. Definition at line 71 of file base-thread.inc.php. References BaseModule::params(). |
|
|
this initializes teh rss page.
Reimplemented from ObjectManager. Definition at line 204 of file base-thread.inc.php. References BaseModule::params(). |
|
|
private The name of the class that we're doing comments for. if this is an ImageThread, it would be 'Image' Definition at line 20 of file base-thread.inc.php. |
|
|
private The id of the content the thread is for.
Definition at line 15 of file base-thread.inc.php. |
|
|
public the count of comments in teh thread.
Definition at line 25 of file base-thread.inc.php. |
1.3.9.1