diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-09-24 19:20:26 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-09-24 19:20:26 +0000 |
| commit | 1877271b76d6496ad6e0ab4e53f0dc0f4653d32e (patch) | |
| tree | 41e4179d2d84da8a3bd38bd4cbf3489da9c706b9 /FeedStatus.php | |
| parent | a161fa759c06f10858d4e58b111a84aab86bb889 (diff) | |
| download | feed-1877271b76d6496ad6e0ab4e53f0dc0f4653d32e.tar.gz feed-1877271b76d6496ad6e0ab4e53f0dc0f4653d32e.tar.bz2 feed-1877271b76d6496ad6e0ab4e53f0dc0f4653d32e.zip | |
add FeedStatus class and associated new feature package modules
Diffstat (limited to 'FeedStatus.php')
| -rw-r--r-- | FeedStatus.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/FeedStatus.php b/FeedStatus.php new file mode 100644 index 0000000..8cbb28a --- /dev/null +++ b/FeedStatus.php @@ -0,0 +1,51 @@ +<?php + +require_once( LIBERTY_PKG_PATH.'LibertyComment.php' ); +require_once( USERS_PKG_PATH.'BitUser.php'); + +define( 'FEEDSTATUS_CONTENT_TYPE_GUID','feedstatus'); + +class FeedStatus extends LibertyComment { + + /** + * During initialisation, be sure to call our base constructors + **/ + function FeedStatus($pCommentId = NULL, $pContentId = NULL, $pInfo = NULL) { + + LibertyComment::LibertyComment($pCommentId,$pContentId,$pInfo); + +/* // Permission setup + $this->mViewContentPerm = 'p_boards_read'; + $this->mUpdateContentPerm = 'p_boards_post_update'; + $this->mAdminContentPerm = 'p_boards_admin'; +*/ + + $this->mContentTypeGuid = FEEDSTATUS_CONTENT_TYPE_GUID; + $this->registerContentType( FEEDSTATUS_CONTENT_TYPE_GUID, array( + 'content_type_guid' => FEEDSTATUS_CONTENT_TYPE_GUID, + 'content_description' => 'Feed Status', + 'handler_class' => 'FeedStatus', + 'handler_package' => 'feed', + 'handler_file' => 'FeedStatus.php', + 'maintainer_url' => 'http://www.bitweaver.org' + ) ); +/* + $this->mViewContentPerm = 'p_loc_view'; + $this->mCreateContentPerm = 'p_loc_edit'; + $this->mUpdateContentPerm = 'p_loc_edit'; + $this->mAdminContentPerm = 'p_loc_admin'; +*/ + } + + function getThumbnailUrl($pSize = 'avatar', $pInfoHash = NULL){ + $rootUser = new BitUser(NULL,$this->mInfo['root_id']); + $rootUser->load(); + $thumbnailUrl = $rootUser->getThumbnailUrl( $pSize ); + if( empty ($thumbnailUrl) ){ + $thumbnailUrl = USERS_PKG_URL.'icons/silhouette.png'; + } + return $thumbnailUrl; + } + +} +?> |
