Cheetah
|
Public Attributes | |
$iIconSize | |
$iThumbSize | |
$iBigThumbSize | |
$iImgSize | |
$bAdminMode | |
$sSpacerPath | |
$iLastPostedPostID | |
$iPostViewType | |
$iViewingPostID | |
$aViewingPostInfo | |
$sHomeUrl | |
$sHomePath | |
$oPrivacy | |
$_iVisitorID | |
$_sPageHeader | |
![]() | |
$_aModule | |
$_oDb | |
$_oTemplate | |
$_oConfig | |
Additional Inherited Members | |
![]() | |
static | getInstance ($sClassName) |
static | getTitle ($sUri) |
Blogs module by Cheetah
This module allow user to keep blog.
Example of using this module to get any member blog page:
ch_import('ChWsbModuleDb'); require_once( CH_DIRECTORY_PATH_MODULES . 'cheetah/blogs/classes/ChBlogsModule.php'); $oModuleDb = new ChWsbModuleDb(); $aModule = $oModuleDb->getModuleByUri('blogs'); $oBlogs = new ChBlogsModule($aModule); echo $oBlogs->GenMemberBlog($iMemberID);
Profile's Wall: 'create' event is displayed on profile's wall
Spy: 'create' event is displayed in spy
Memberships/ACL: View blog - CH_BLOG_VIEW View posts - CH_BLOG_POST_VIEW Browse blogs - CH_BLOGS_BROWSE Browse posts - CH_BLOGS_POSTS_BROWSE Use search and view search results - CH_BLOG_POST_SEARCH Add posts - CH_BLOG_POST_ADD Edit any post (as admin) - CH_BLOG_POSTS_EDIT_ANY_POST Delete any post (as admin) - CH_BLOG_POSTS_DELETE_ANY_POST Approve any post (as admin) - CH_BLOG_POSTS_APPROVING
Service methods:
Delete blog (carefully with it)
Blogs block for index page (as PHP function)
Blogs block for profile page (as PHP function)
Generation of member RSS feeds
Get common css
Get member menu item - my content
Get member menu item - add content
Get number of posts for particular member
Get Spy data
Get Spy blog post
Alerts: Alerts type/unit - 'ch_blogs' The following alerts are rised
view_post - view post $this->iViewingPostID - viewing post id $this->_iVisitorID - visitor id
create - creating of new post $iPostID - post id (for new post - 0) $iPostOwnerID - post owner id
edit_post - editing of existed post $iPostID - post id $iPostOwnerID - post owner id
delete_post - deleting of existed post $iPostID - post id $iPostOwnerID - post owner id
Definition at line 189 of file ChBlogsModule.php.
ChBlogsModule::__construct | ( | $aModule | ) |
ChBlogsModule::_defineActions | ( | ) |
Definition at line 522 of file ChBlogsModule.php.
ChBlogsModule::_GenPosts | ( | $iPostViewType, | |
$iPerPage, | |||
$sMode, | |||
$aParams, | |||
$sOrder, | |||
& | $oSearchResult, | ||
$sMobileWrapper = false |
|||
) |
Get list of blog posts
$iPostViewType | view type |
$iPerPage | posts per page |
$sMode | last[default], top, featured |
$sOrder | last[default], popular, top |
$oSearchResult | search result object will be assigned to this variable |
Definition at line 895 of file ChBlogsModule.php.
ChBlogsModule::ActionChangeFeatureStatus | ( | ) |
Definition at line 2391 of file ChBlogsModule.php.
ChBlogsModule::ActionDeleteBlogSQL | ( | ) |
ChBlogsModule::ActionDeletePost | ( | $iPostID = 0 | ) |
SQL: Delete post by POSTed data
Definition at line 1203 of file ChBlogsModule.php.
ChBlogsModule::ActionDelImg | ( | ) |
Definition at line 1159 of file ChBlogsModule.php.
ChBlogsModule::ActionEditBlog | ( | ) |
Editing a Description of Blog
Definition at line 2735 of file ChBlogsModule.php.
ChBlogsModule::ActionPrepareForEdit | ( | $sInput | ) |
Definition at line 2810 of file ChBlogsModule.php.
ChBlogsModule::ActionSharePopup | ( | $iPostId | ) |
Definition at line 2794 of file ChBlogsModule.php.
ChBlogsModule::AddNewPostForm | ( | $iPostID = 0 , |
|
$bBox = true |
|||
) |
Generate Form for NewPost/EditPost
$iPostID | - Post ID |
Definition at line 1971 of file ChBlogsModule.php.
ChBlogsModule::CheckLogged | ( | ) |
Definition at line 248 of file ChBlogsModule.php.
ChBlogsModule::defineCategoryName | ( | ) |
Definition at line 2839 of file ChBlogsModule.php.
ChBlogsModule::defineUserId | ( | ) |
Definition at line 2818 of file ChBlogsModule.php.
ChBlogsModule::GenAddCategoryForm | ( | ) |
Generate a Form to Editing/Adding of Category of Blog
Definition at line 2297 of file ChBlogsModule.php.
ChBlogsModule::GenAdminTabbedPage | ( | ) |
Definition at line 2689 of file ChBlogsModule.php.
ChBlogsModule::GenBlogAdminIndex | ( | ) |
Definition at line 538 of file ChBlogsModule.php.
ChBlogsModule::GenBlogCalendar | ( | $isMiniMode = false , |
|
$iBlockID = 0 , |
|||
$sDynamicUrl = '' |
|||
) |
Definition at line 2494 of file ChBlogsModule.php.
ChBlogsModule::genBlogFormUrl | ( | ) |
Definition at line 2860 of file ChBlogsModule.php.
ChBlogsModule::GenBlogHome | ( | ) |
Definition at line 595 of file ChBlogsModule.php.
ChBlogsModule::genBlogLink | ( | $sAction, | |
$aUser = array() , |
|||
$aCategory = array() , |
|||
$aPost = array() , |
|||
$sTag = '' , |
|||
$bSubUrl = false |
|||
) |
Definition at line 2881 of file ChBlogsModule.php.
ChBlogsModule::GenBlogLists | ( | $sType = '' , |
|
$bBlock = true |
|||
) |
Generate List of Blogs
$sType | - tyle of list ('top', 'last') |
Definition at line 609 of file ChBlogsModule.php.
ChBlogsModule::genBlogSubUrl | ( | ) |
Definition at line 2870 of file ChBlogsModule.php.
ChBlogsModule::GenCommandForms | ( | ) |
ChBlogsModule::GenCreateBlogForm | ( | $bBox = true | ) |
Generate a Form to Create Blog
Definition at line 2582 of file ChBlogsModule.php.
ChBlogsModule::GenMemberBlog | ( | $iUserID = 0 | ) |
Generate User`s Blog Page
$iUserID | - User ID |
Definition at line 1035 of file ChBlogsModule.php.
ChBlogsModule::GenMemberDescrAndCat | ( | $aBlogsRes, | |
$sCategoryName = '' |
|||
) |
Generate User Right Part for Blogs
$aBlogsRes | - Blog Array Data |
$iView | - type of view(1 is short view, 2 is full view, 3 is post view(short)) |
Definition at line 961 of file ChBlogsModule.php.
ChBlogsModule::GenMyPageAdmin | ( | $sMode = '' | ) |
Definition at line 1838 of file ChBlogsModule.php.
ChBlogsModule::GenPostCalendarDay | ( | ) |
Generate List of Posts for calendar
Definition at line 2516 of file ChBlogsModule.php.
ChBlogsModule::GenPostListMobile | ( | $iAuthor = 0 , |
|
$sMode = false |
|||
) |
Generate List of Posts for mobile frontend
$iAuthor | - display posts of provided user only |
$sMode | - display all latest[default], featured or top posts |
Definition at line 739 of file ChBlogsModule.php.
ChBlogsModule::GenPostLists | ( | $sType = '' , |
|
$bBlock = true |
|||
) |
Generate List of Posts
$sType | - tyle of list ('top', 'last'), but now realized only Top posts |
Definition at line 836 of file ChBlogsModule.php.
ChBlogsModule::GenPostPage | ( | $iParamPostID = 0 | ) |
Generate User`s Blog Post Page
Definition at line 1803 of file ChBlogsModule.php.
ChBlogsModule::GenPostsOfCategory | ( | ) |
Definition at line 934 of file ChBlogsModule.php.
ChBlogsModule::GenSearchResult | ( | ) |
Generate a Block of searching result by Tag (GET is tagKey)
Definition at line 2422 of file ChBlogsModule.php.
ChBlogsModule::GenTagsPage | ( | ) |
ChBlogsModule::genUrl | ( | $iEntryId, | |
$sEntryUri, | |||
$sType = 'entry' |
|||
) |
Definition at line 2955 of file ChBlogsModule.php.
ChBlogsModule::getActionsBlock | ( | ) |
Definition at line 1430 of file ChBlogsModule.php.
ChBlogsModule::getAdministrationSettings | ( | ) |
Definition at line 2705 of file ChBlogsModule.php.
ChBlogsModule::getBlogPostBlock | ( | ) |
Definition at line 1330 of file ChBlogsModule.php.
ChBlogsModule::getCommentsBlock | ( | ) |
Definition at line 1419 of file ChBlogsModule.php.
ChBlogsModule::GetHeaderString | ( | ) |
Return string for Header, depends at POST params
Definition at line 260 of file ChBlogsModule.php.
ChBlogsModule::getPostCategoriesBlock | ( | ) |
Definition at line 1711 of file ChBlogsModule.php.
ChBlogsModule::getPostFeatureBlock | ( | ) |
Definition at line 1764 of file ChBlogsModule.php.
ChBlogsModule::getPostOverviewBlock | ( | ) |
Definition at line 1581 of file ChBlogsModule.php.
ChBlogsModule::getPostSocialSharingBlock | ( | ) |
Definition at line 1395 of file ChBlogsModule.php.
ChBlogsModule::getPostTagsBlock | ( | ) |
Definition at line 1640 of file ChBlogsModule.php.
ChBlogsModule::getRateBlock | ( | ) |
Definition at line 1562 of file ChBlogsModule.php.
ChBlogsModule::getTagLinks | ( | $sTagList, | |
$sType = 'tag' , |
|||
$sDivider = ' ' |
|||
) |
Definition at line 2277 of file ChBlogsModule.php.
ChBlogsModule::getViewingPostInfo | ( | ) |
Definition at line 1275 of file ChBlogsModule.php.
ChBlogsModule::isAdmin | ( | ) |
Definition at line 517 of file ChBlogsModule.php.
ChBlogsModule::isAllowedApprove | ( | $isPerformAction = false | ) |
Definition at line 494 of file ChBlogsModule.php.
ChBlogsModule::isAllowedBlogPostSearch | ( | $isPerformAction = false | ) |
Definition at line 447 of file ChBlogsModule.php.
ChBlogsModule::isAllowedBlogPostView | ( | $iOwnerID, | |
$isPerformAction = false |
|||
) |
Definition at line 414 of file ChBlogsModule.php.
ChBlogsModule::isAllowedBlogsBrowse | ( | $isPerformAction = false | ) |
Definition at line 425 of file ChBlogsModule.php.
ChBlogsModule::isAllowedBlogsPostsBrowse | ( | $isPerformAction = false | ) |
Definition at line 436 of file ChBlogsModule.php.
ChBlogsModule::isAllowedBlogView | ( | $iOwnerID, | |
$isPerformAction = false |
|||
) |
Definition at line 403 of file ChBlogsModule.php.
ChBlogsModule::isAllowedComments | ( | & | $aBlogPost | ) |
Definition at line 380 of file ChBlogsModule.php.
ChBlogsModule::isAllowedCreatorCommentsDeleteAndEdit | ( | & | $aBlogPost, |
$isPerformAction = false |
|||
) |
Definition at line 389 of file ChBlogsModule.php.
ChBlogsModule::isAllowedPostAdd | ( | $isPerformAction = false | ) |
Definition at line 458 of file ChBlogsModule.php.
ChBlogsModule::isAllowedPostDelete | ( | $iOwnerID, | |
$isPerformAction = false |
|||
) |
Definition at line 483 of file ChBlogsModule.php.
ChBlogsModule::isAllowedPostEdit | ( | $iOwnerID, | |
$isPerformAction = false |
|||
) |
Definition at line 472 of file ChBlogsModule.php.
ChBlogsModule::isAllowedShare | ( | & | $aDataEntry | ) |
Definition at line 508 of file ChBlogsModule.php.
ChBlogsModule::isPermalinkEnabled | ( | ) |
Definition at line 2852 of file ChBlogsModule.php.
ChBlogsModule::onPostApproveDisapprove | ( | $iBPostID, | |
$isApprove | |||
) |
Fired when post status is changed to approved or disapproved
Definition at line 3729 of file ChBlogsModule.php.
ChBlogsModule::serviceActionDeleteBlog | ( | ) |
Blog deleting. For outer usage (carefully in using).
Definition at line 2789 of file ChBlogsModule.php.
ChBlogsModule::serviceBlogsCalendarIndexPage | ( | $iBlockID | ) |
Blogs mini-calendar block for index page (as PHP function). List of latest posts.
Definition at line 3000 of file ChBlogsModule.php.
ChBlogsModule::serviceBlogsIndexPage | ( | $bShortPgn = true , |
|
$iPerPage = 0 |
|||
) |
Blogs block for index page (as PHP function). List of latest posts.
Definition at line 3014 of file ChBlogsModule.php.
ChBlogsModule::serviceBlogsProfilePage | ( | $_iProfileID | ) |
Blogs block for profile page (as PHP function). List of latest posts of member.
$_iProfileID | - member id |
Definition at line 3046 of file ChBlogsModule.php.
ChBlogsModule::serviceBlogsRss | ( | ) |
Printing of member`s blog post rss feeds
ch_get | ('pid') - member id |
Definition at line 3078 of file ChBlogsModule.php.
ChBlogsModule::serviceGetCommonCss | ( | ) |
ChBlogsModule::serviceGetMemberMenuItem | ( | ) |
Get member menu item - my content
Definition at line 3122 of file ChBlogsModule.php.
ChBlogsModule::serviceGetMemberMenuItemAddContent | ( | ) |
Get member menu item - add content
Definition at line 3146 of file ChBlogsModule.php.
ChBlogsModule::serviceGetPostsCountForMember | ( | $iMemberId | ) |
Get number of posts for particular member
Definition at line 3168 of file ChBlogsModule.php.
ChBlogsModule::serviceGetSpyData | ( | ) |
Get Spy data
@returm array of necessary parameters
Definition at line 3631 of file ChBlogsModule.php.
ChBlogsModule::serviceGetSpyPost | ( | $sAction, | |
$iObjectId = 0 , |
|||
$iSenderId = 0 , |
|||
$aExtraParams = array() |
|||
) |
Get Spy post
$sAction - name of accepted action $iObjectId - object id $iSenderId - sender id
@returm array of necessary parameters
Definition at line 3676 of file ChBlogsModule.php.
ChBlogsModule::serviceGetSubscriptionParams | ( | $sAction, | |
$iEntryId | |||
) |
Definition at line 1537 of file ChBlogsModule.php.
ChBlogsModule::serviceGetWallAddComment | ( | $aEvent | ) |
Definition at line 3358 of file ChBlogsModule.php.
ChBlogsModule::serviceGetWallData | ( | ) |
Definition at line 3193 of file ChBlogsModule.php.
ChBlogsModule::serviceGetWallPost | ( | $aEvent | ) |
Definition at line 3242 of file ChBlogsModule.php.
ChBlogsModule::serviceGetWallPostComment | ( | $aEvent | ) |
DEPRICATED, saved for backward compatibility
Definition at line 3424 of file ChBlogsModule.php.
ChBlogsModule::serviceGetWallPostOutline | ( | $aEvent | ) |
Definition at line 3485 of file ChBlogsModule.php.
ChBlogsModule::serviceResponseProfileDelete | ( | $oAlert | ) |
Definition at line 3176 of file ChBlogsModule.php.
ChBlogsModule::Templater | ( | $sPostsSect, | |
$sRightSect | |||
) |
Definition at line 2966 of file ChBlogsModule.php.
ChBlogsModule::$_iVisitorID |
Definition at line 215 of file ChBlogsModule.php.
ChBlogsModule::$_sPageHeader |
Definition at line 216 of file ChBlogsModule.php.
ChBlogsModule::$aViewingPostInfo |
Definition at line 209 of file ChBlogsModule.php.
ChBlogsModule::$bAdminMode |
Definition at line 200 of file ChBlogsModule.php.
ChBlogsModule::$iBigThumbSize |
Definition at line 196 of file ChBlogsModule.php.
ChBlogsModule::$iIconSize |
Definition at line 194 of file ChBlogsModule.php.
ChBlogsModule::$iImgSize |
Definition at line 197 of file ChBlogsModule.php.
ChBlogsModule::$iLastPostedPostID |
Definition at line 205 of file ChBlogsModule.php.
ChBlogsModule::$iPostViewType |
Definition at line 207 of file ChBlogsModule.php.
ChBlogsModule::$iThumbSize |
Definition at line 195 of file ChBlogsModule.php.
ChBlogsModule::$iViewingPostID |
Definition at line 208 of file ChBlogsModule.php.
ChBlogsModule::$oPrivacy |
Definition at line 214 of file ChBlogsModule.php.
ChBlogsModule::$sHomePath |
Definition at line 212 of file ChBlogsModule.php.
ChBlogsModule::$sHomeUrl |
Definition at line 211 of file ChBlogsModule.php.
ChBlogsModule::$sSpacerPath |
Definition at line 203 of file ChBlogsModule.php.