
Public Member Functions | |
| addTrackbackFrom ($url, $title= '', $excerpt= '', $blog_name= '') | |
| BitBlogPost ($pPostId=NULL, $pContentId=NULL) | |
| clearTrackbacksFrom () | |
| clearTrackbacksTo () | |
| expunge () | |
| getBlogMemberships ($pPostContentId) | |
| getDisplayLink ($pTitle=NULL, $pMixed=NULL) | |
| getDisplayUrl ($pContentId=NULL) | |
| getExpiredList (&$pParamHash) | |
| getFutureList (&$pParamHash) | |
| getList (&$pListHash) | |
| getRenderFile () | |
| getTitle ($pHash=NULL) | |
| getTrackbacksFrom () | |
| getTrackbacksTo () | |
| isBlogOwner ($pUserId=NULL) | |
| isCommentable () | |
| isValid () | |
| load ($pLoadComments=TRUE) | |
| preparePreview ($pParamHash) | |
| sendTrackbacks ($pTrackbacks) | |
| store (&$pParamHash) | |
| storePostMap ($pPostContentId, $pBlogMixed) | |
| verify (&$pParamHash) | |
Public Attributes | |
| $mPostId | |
Definition at line 34 of file BitBlogPost.php.
| BitBlogPost::addTrackbackFrom | ( | $ | url, | |
| $ | title = '', |
|||
| $ | excerpt = '', |
|||
| $ | blog_name = '' | |||
| ) |
Definition at line 924 of file BitBlogPost.php.
References $query, $title, $url, getTrackbacksFrom(), isValid(), mDb, and title.
Here is the call graph for this function:

| BitBlogPost::BitBlogPost | ( | $ | pPostId = NULL, |
|
| $ | pContentId = NULL | |||
| ) |
Definition at line 37 of file BitBlogPost.php.
References LibertyAttachable::LibertyAttachable(), mContentId, and LibertyContent::registerContentType().
Here is the call graph for this function:

| BitBlogPost::clearTrackbacksFrom | ( | ) |
Definition at line 964 of file BitBlogPost.php.
References $query, isValid(), and mDb.
Here is the call graph for this function:

| BitBlogPost::clearTrackbacksTo | ( | ) |
Definition at line 975 of file BitBlogPost.php.
References $query, isValid(), and mDb.
Here is the call graph for this function:

| BitBlogPost::expunge | ( | ) |
Remove complete blog post set and any comments
Reimplemented from LibertyContent.
Definition at line 528 of file BitBlogPost.php.
References $comment, $query, $result, $ret, LibertyContent::expunge(), FALSE, isValid(), mContentId, mDb, and mInfo.
Here is the call graph for this function:

| BitBlogPost::getBlogMemberships | ( | $ | pPostContentId | ) |
Definition at line 161 of file BitBlogPost.php.
References $gBitSystem, $query, $ret, BitBlog::getDisplayUrl(), mDb, and BitBase::verifyId().
Referenced by getList(), and load().
Here is the call graph for this function:

| BitBlogPost::getDisplayLink | ( | $ | pTitle = NULL, |
|
| $ | pMixed = NULL | |||
| ) |
Generate a valid display link for the Blog
| object | PostId of the item to use | |
| array | Not used |
Definition at line 589 of file BitBlogPost.php.
References $gBitSystem, $ret, LibertyContent::getContentTypeDescription(), BitBase::getField(), getTitle(), mInfo, and title.
Referenced by getList().
Here is the call graph for this function:

| BitBlogPost::getDisplayUrl | ( | $ | pContentId = NULL |
) |
Generate a valid url for the Blog
| object | PostId of the item to use |
Definition at line 565 of file BitBlogPost.php.
References $gBitSystem, $ret, mContentId, and BitBase::verifyId().
Referenced by getList().
Here is the call graph for this function:

| BitBlogPost::getExpiredList | ( | &$ | pParamHash | ) |
Get list of posts that have expired and are not displayed on the site anymore
| array | $pParamHash contains listing options - same as getList() public |
Definition at line 915 of file BitBlogPost.php.
References $pParamHash, and getList().
Here is the call graph for this function:

| BitBlogPost::getFutureList | ( | &$ | pParamHash | ) |
Get a list of posts that are to be published in the future
| array | $pParamHash contains listing options - same as getList() public |
Definition at line 902 of file BitBlogPost.php.
References $pParamHash, and getList().
Here is the call graph for this function:

| BitBlogPost::getList | ( | &$ | pListHash | ) |
Definition at line 668 of file BitBlogPost.php.
References $comment, $gBitSystem, $gBitUser, $now, $query, $res, $result, $ret, $sort_mode, date, FALSE, getBlogMemberships(), getDisplayLink(), getDisplayUrl(), LibertyContent::getNumberOfPages(), LibertyContent::getServicesSql(), LibertyContent::invokeServices(), liberty_fetch_thumbnail_url(), mDb, mUserId, LibertyContent::parseData(), LibertyContent::parseSplit(), BitBase::postGetList(), LibertyContent::prepGetList(), title, and BitBase::verifyId().
Referenced by getExpiredList(), and getFutureList().
Here is the call graph for this function:

| BitBlogPost::getRenderFile | ( | ) |
Returns include file that will
Reimplemented from LibertyContent.
Definition at line 611 of file BitBlogPost.php.
| BitBlogPost::getTitle | ( | $ | pHash = NULL |
) |
Create the generic title for a content item
This will normally be overwriten by extended classes to provide an appropriate title title string
| array | mInfo type hash of data to be used to provide base data |
Reimplemented from LibertyContent.
Definition at line 139 of file BitBlogPost.php.
References $gBitSystem, $ret, mInfo, and title.
Referenced by getDisplayLink(), and preparePreview().
| BitBlogPost::getTrackbacksFrom | ( | ) |
Definition at line 944 of file BitBlogPost.php.
References isValid(), and mDb.
Referenced by addTrackbackFrom().
Here is the call graph for this function:

| BitBlogPost::getTrackbacksTo | ( | ) |
Definition at line 954 of file BitBlogPost.php.
References isValid(), and mDb.
Here is the call graph for this function:

| BitBlogPost::isBlogOwner | ( | $ | pUserId = NULL |
) |
| BitBlogPost::isCommentable | ( | ) |
Check if the current post can have comments attached to it
Reimplemented from LibertyContent.
Definition at line 379 of file BitBlogPost.php.
References $gBitSystem.
| BitBlogPost::isValid | ( | ) |
Check that the class has a valid blog loaded
Reimplemented from LibertyContent.
Definition at line 356 of file BitBlogPost.php.
References BitBase::verifyId().
Referenced by addTrackbackFrom(), clearTrackbacksFrom(), clearTrackbacksTo(), expunge(), getTrackbacksFrom(), getTrackbacksTo(), isBlogOwner(), sendTrackbacks(), and store().
Here is the call graph for this function:

| BitBlogPost::load | ( | $ | pLoadComments = TRUE |
) |
Load a Blog Post section
Reimplemented from LibertyAttachable.
Definition at line 60 of file BitBlogPost.php.
References $comment, $gBitSystem, $gBitUser, $gLibertySystem, $parts, $query, getBlogMemberships(), LibertyContent::getServicesSql(), LibertyAttachable::load(), mContentId, mDb, mInfo, mStorage, and BitBase::verifyId().
Referenced by store(), and verify().
Here is the call graph for this function:

| BitBlogPost::preparePreview | ( | $ | pParamHash | ) |
Deal with images and text, modify them apprpriately that they can be returned to the form.
| $previewData | data submitted by form - generally $_REQUEST |
Definition at line 190 of file BitBlogPost.php.
References $data, $gBitSystem, $gBitUser, $pParamHash, $query, BitArticle::getImageUrl(), getTitle(), mDb, mInfo, LibertyContent::parseData(), title, verify(), and BitBase::verifyId().
Here is the call graph for this function:

| BitBlogPost::sendTrackbacks | ( | $ | pTrackbacks | ) |
| BitBlogPost::store | ( | &$ | pParamHash | ) |
Store a Blog Post
Reimplemented from LibertyAttachable.
Definition at line 387 of file BitBlogPost.php.
References $_SERVER, $foo, $gBitSmarty, $gBitSystem, $gBitUser, $machine, $mail_data, $parts, $post_id, $pParamHash, $query, $result, $title, $user_id, httpPrefix(), isValid(), load(), mContentId, mDb, mInfo, sendTrackbacks(), LibertyAttachable::store(), storePostMap(), title, tra(), verify(), and BitBase::verifyId().
Here is the call graph for this function:

| BitBlogPost::storePostMap | ( | $ | pPostContentId, | |
| $ | pBlogMixed | |||
| ) |
Map a Post to a Blog or multiple Blogs
| pPostContentId | the content_id of the post we are associating with blogs. | |
| pBlogMixed | the content_id or and array of ids of the blogs we want the post to show up in. |
Definition at line 474 of file BitBlogPost.php.
References $gBitSystem, $gBitUser, $result, LibertyContent::checkContentPermission(), mDb, mUserId, and BitBase::verifyId().
Referenced by store().
Here is the call graph for this function:

| BitBlogPost::verify | ( | &$ | pParamHash | ) |
Make sure the data is safe to store
| pParamHash | be sure to pass by reference in case we need to make modifcations to the hash This function is responsible for data integrity and validation before any operations are performed with the $pParamHash NOTE: This is a PRIVATE METHOD!!!! do not call outside this class, under penalty of death! | |
| array | pParams reference to hash of values that will be used to store the page, they will be modified where necessary |
Reimplemented from LibertyAttachable.
Definition at line 261 of file BitBlogPost.php.
References $gBitSystem, $gBitUser, $gLibertySystem, $offset, $pParamHash, $timestamp, BitDate::get_display_offset(), load(), mInfo, title, and BitBase::verifyId().
Referenced by preparePreview(), and store().
Here is the call graph for this function:

| BitBlogPost::$mPostId |
Definition at line 35 of file BitBlogPost.php.
1.5.2