Ejemplo n.º 1
0
 /**
  * Initiates class
  *
  * @access public
  * @return void
  */
 function TreasuryBase()
 {
     if (get_class($this) == 'treasurygallery') {
         parent::__construct();
     } else {
         parent::__construct();
     }
 }
Ejemplo n.º 2
0
 /**
  * Constructor - will automatically load all relevant data if passed a user string
  *
  * @access public
  * @author Christian Fowler <*****@*****.**>
  * @return returnString
  */
 function __construct($pUserId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mContentTypeGuid = BITUSER_CONTENT_TYPE_GUID;
     $this->registerContentType(BITUSER_CONTENT_TYPE_GUID, array('content_type_guid' => BITUSER_CONTENT_TYPE_GUID, 'content_name' => 'User Information', 'content_name_plural' => 'User Information', 'handler_class' => 'BitUser', 'handler_package' => 'users', 'handler_file' => 'RoleUser.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mUserId = @$this->verifyId($pUserId) ? $pUserId : NULL;
     $this->mContentId = $pContentId;
 }
Ejemplo n.º 3
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function __construct()
 {
     parent::__construct();
     // Permission setup
     $this->mViewContentPerm = 'p_gmap_overlay_view';
     $this->mCreateContentPerm = 'p_gmap_overlay_create';
     $this->mUpdateContentPerm = 'p_gmap_overlay_update';
     $this->mAdminContentPerm = 'p_gmap_admin';
 }
Ejemplo n.º 4
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function __construct($pRootId = NULL)
 {
     parent::__construct();
     $this->mRootId = $pRootId;
     // Permission setup
     $this->mViewContentPerm = 'p_boards_read';
     $this->mUpdateContentPerm = 'p_boards_update';
     $this->mAdminContentPerm = 'p_boards_admin';
     $this->mRootObj = NULL;
     //a reference to the root obj
 }
Ejemplo n.º 5
0
 function __construct($pBlogId = NULL, $pContentId = NULL)
 {
     $this->mBlogId = @$this->verifyId($pBlogId) ? $pBlogId : NULL;
     parent::__construct($pContentId);
     $this->registerContentType(BITBLOG_CONTENT_TYPE_GUID, array('content_type_guid' => BITBLOG_CONTENT_TYPE_GUID, 'content_name' => 'Blog', 'handler_class' => 'BitBlog', 'handler_package' => 'blogs', 'handler_file' => 'BitBlog.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITBLOG_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_blogs_view';
     $this->mUpdateContentPerm = 'p_blogs_update';
     $this->mCreateContentPerm = 'p_blogs_create';
     $this->mAdminContentPerm = 'p_blogs_admin';
 }
Ejemplo n.º 6
0
 function __construct($pEditionId = NULL, $pContentId = NULL, $pNlId = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITNEWSLETTEREDITION_CONTENT_TYPE_GUID, array('content_type_guid' => BITNEWSLETTEREDITION_CONTENT_TYPE_GUID, 'content_name' => 'Edition', 'handler_class' => 'BitNewsletterEdition', 'handler_package' => 'newsletters', 'handler_file' => 'BitNewsletterEdition.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mEditionId = $pEditionId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITNEWSLETTEREDITION_CONTENT_TYPE_GUID;
     $this->mNewsletter = new BitNewsletter($pNlId);
     // Permission setup
     //$this->mViewContentPerm  = '';
     $this->mUpdateContentPerm = 'p_newsletters_create_editions';
     $this->mAdminContentPerm = 'p_newsletters_admin';
 }
Ejemplo n.º 7
0
 function __construct($pPostId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITBLOGPOST_CONTENT_TYPE_GUID, array('content_type_guid' => BITBLOGPOST_CONTENT_TYPE_GUID, 'content_name' => 'Blog Post', 'handler_class' => 'BitBlogPost', 'handler_package' => 'blogs', 'handler_file' => 'BitBlogPost.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mPostId = (int) $pPostId;
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = BITBLOGPOST_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_blogs_view';
     $this->mCreateContentPerm = 'p_blogs_post';
     $this->mUpdateContentPerm = 'p_blogs_update';
     $this->mAdminContentPerm = 'p_blogs_admin';
 }
Ejemplo n.º 8
0
 function __construct($pGmapId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mGmapId = $pGmapId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITGMAP_CONTENT_TYPE_GUID;
     $this->registerContentType(BITGMAP_CONTENT_TYPE_GUID, array('content_type_guid' => BITGMAP_CONTENT_TYPE_GUID, 'content_name' => 'Map', 'handler_class' => 'BitGmap', 'handler_package' => 'gmap', 'handler_file' => 'BitGmap.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_gmap_view';
     $this->mCreateContentPerm = 'p_gmap_create';
     $this->mUpdateContentPerm = 'p_gmap_update';
     $this->mAdminContentPerm = 'p_gmap_admin';
 }
Ejemplo n.º 9
0
 function __construct($pPageId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITPAGE_CONTENT_TYPE_GUID, array('content_type_guid' => BITPAGE_CONTENT_TYPE_GUID, 'content_name' => 'Wiki Page', 'handler_class' => 'BitPage', 'handler_package' => 'wiki', 'handler_file' => 'BitPage.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mPageId = (int) $pPageId;
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = BITPAGE_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_wiki_view_page';
     $this->mCreateContentPerm = 'p_wiki_create_page';
     $this->mUpdateContentPerm = 'p_wiki_update_page';
     $this->mAdminContentPerm = 'p_wiki_admin';
 }
Ejemplo n.º 10
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function __construct($pBitBoardId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mBitBoardId = $pBitBoardId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITBOARD_CONTENT_TYPE_GUID;
     $this->registerContentType(BITBOARD_CONTENT_TYPE_GUID, array('content_type_guid' => BITBOARD_CONTENT_TYPE_GUID, 'content_name' => 'Message Board', 'handler_class' => 'BitBoard', 'handler_package' => 'boards', 'handler_file' => 'BitBoard.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_boards_read';
     $this->mCreateContentPerm = 'p_boards_create';
     $this->mUpdateContentPerm = 'p_boards_update';
     $this->mAdminContentPerm = 'p_boards_admin';
     $this->mExpungeContentPerm = 'p_boards_remove';
 }
Ejemplo n.º 11
0
 /**
  * BitSuggestion During initialisation, be sure to call our base constructors
  * 
  * @param numeric $pSuggestionId 
  * @param numeric $pContentId 
  * @access public
  * @return void
  */
 function BitSuggestion($pSuggestionId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mSuggestionId = $pSuggestionId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITSUGGESTION_CONTENT_TYPE_GUID;
     $this->registerContentType(BITSUGGESTION_CONTENT_TYPE_GUID, array('content_type_guid' => BITSUGGESTION_CONTENT_TYPE_GUID, 'content_name' => 'Suggestion', 'handler_class' => 'BitSuggestion', 'handler_package' => 'suggestion', 'handler_file' => 'BitSuggestion.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_suggestion_view';
     $this->mCreateContentPerm = 'p_suggestion_create';
     $this->mUpdateContentPerm = 'p_suggestion_update';
     $this->mAdminContentPerm = 'p_suggestion_admin';
     $this->mExpungeContentPerm = 'p_suggestion_expunge';
 }
Ejemplo n.º 12
0
 /**
  * BitEnergyMeasures During initialisation, be sure to call our base constructors
  * 
  * @param numeric $pEnergyMeasuresId 
  * @param numeric $pContentId 
  * @access public
  * @return void
  */
 function BitEnergyMeasures($pEnergyMeasuresId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mEnergyMeasuresId = $pEnergyMeasuresId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITENERGYMEASURES_CONTENT_TYPE_GUID;
     $this->registerContentType(BITENERGYMEASURES_CONTENT_TYPE_GUID, array('content_type_guid' => BITENERGYMEASURES_CONTENT_TYPE_GUID, 'content_name' => 'Energy Measure', 'handler_class' => 'BitEnergyMeasures', 'handler_package' => 'energymeasures', 'handler_file' => 'BitEnergyMeasures.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_energymeasures_view';
     $this->mCreateContentPerm = 'p_energymeasures_create';
     $this->mUpdateContentPerm = 'p_energymeasures_update';
     $this->mAdminContentPerm = 'p_energymeasures_admin';
     $this->mExpungeContentPerm = 'p_energymeasures_expunge';
 }
Ejemplo n.º 13
0
 function __construct($pCommentId = NULL, $pContentId = NULL, $pInfo = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITCOMMENT_CONTENT_TYPE_GUID, array('content_type_guid' => BITCOMMENT_CONTENT_TYPE_GUID, 'content_name' => 'Comment', 'handler_class' => 'LibertyComment', 'handler_package' => 'liberty', 'handler_file' => 'LibertyComment.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mCommentId = $pCommentId;
     $this->mContentId = $pContentId;
     $this->mInfo = $pInfo;
     $this->mContentTypeGuid = BITCOMMENT_CONTENT_TYPE_GUID;
     $this->mAdminContentPerm = 'p_liberty_admin_comments';
     $this->mRootObj = NULL;
     if ($this->mCommentId || $this->mContentId) {
         $this->loadComment();
     }
 }
Ejemplo n.º 14
0
 /**
  * BitSample During initialisation, be sure to call our base constructors
  * 
  * @param numeric $pSampleId 
  * @param numeric $pContentId 
  * @access public
  * @return void
  */
 function BitSample($pSampleId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mSampleId = $pSampleId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITSAMPLE_CONTENT_TYPE_GUID;
     $this->registerContentType(BITSAMPLE_CONTENT_TYPE_GUID, array('content_type_guid' => BITSAMPLE_CONTENT_TYPE_GUID, 'content_name' => 'Bitweaver sample package data', 'content_name_plural' => 'Bitweaver sample package data', 'handler_class' => 'BitSample', 'handler_package' => 'sample', 'handler_file' => 'BitSample.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_sample_view';
     $this->mCreateContentPerm = 'p_sample_create';
     $this->mUpdateContentPerm = 'p_sample_update';
     $this->mAdminContentPerm = 'p_sample_admin';
     $this->mExpungeContentPerm = 'p_sample_expunge';
 }
Ejemplo n.º 15
0
 function __construct($pProductsId = NULL, $pContentId = NULL)
 {
     $this->mProductsId = $pProductsId;
     parent::__construct();
     $this->registerContentType(BITPRODUCT_CONTENT_TYPE_GUID, array('content_type_guid' => BITPRODUCT_CONTENT_TYPE_GUID, 'content_name' => 'Product', 'handler_class' => 'CommerceProduct', 'handler_package' => 'bitcommerce', 'handler_file' => 'classes/CommerceProduct.php', 'maintainer_url' => 'http://www.bitcommerce.org'));
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITPRODUCT_CONTENT_TYPE_GUID;
     $this->mViewContentPerm = 'p_bitcommerce_product_view';
     $this->mUpdateContentPerm = 'p_bitcommerce_product_update';
     $this->mCreateContentPerm = 'p_bitcommerce_product_create';
     $this->mAdminContentPerm = 'p_bitcommerce_admin';
     $this->mOptions = NULL;
     $this->mDiscounts = NULL;
 }
Ejemplo n.º 16
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function BitStencil($pStencilName = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mStencilId = $pStencilName;
     $this->mContentId = $pContentId;
     $this->validRegexp = "!\\{{3}(\\w*?)\\}{3}!";
     $this->invalidRegexp = "!\\{{3}(.*?)\\}{3}!";
     $this->mContentTypeGuid = BITSTENCIL_CONTENT_TYPE_GUID;
     $this->registerContentType(BITSTENCIL_CONTENT_TYPE_GUID, array('content_type_guid' => BITSTENCIL_CONTENT_TYPE_GUID, 'content_name' => 'Stencil', 'handler_class' => 'BitStencil', 'handler_package' => 'stencil', 'handler_file' => 'BitStencil.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mViewContentPerm = 'p_stencil_read';
     $this->mCreateContentPerm = 'p_stencil_create';
     $this->mUpdateContentPerm = 'p_stencil_update';
     $this->mAdminContentPerm = 'p_stencil_admin';
 }
Ejemplo n.º 17
0
 /**
  * @param int $pId database Id of exiting object of this type
  * @param int $pContentId database Id of existing LibertyContent object
  */
 function __construct($pId = NULL, $pContentId = NULL, $pPkgName, $pFormTbl, $pFormSeq)
 {
     parent::__construct();
     $this->mId = $pId;
     $this->mContentId = $pContentId;
     $this->mFormTbl = BIT_DB_PREFIX . $pFormTbl;
     $this->mFormSeq = $pFormSeq;
     $this->mChildPkgName = $pPkgName;
     $this->mChildIdName = $pPkgName . '_id';
     $this->mBaseURL = constant(strtoupper($pPkgName) . '_PKG_URL');
     // Save typing and errors, give each an element equal to its key name.
     foreach ($this->mFields as $name => &$val) {
         $val['fieldname'] = $name;
     }
 }
Ejemplo n.º 18
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function __construct($pEventsId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mEventsId = $pEventsId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITEVENTS_CONTENT_TYPE_GUID;
     $this->registerContentType(BITEVENTS_CONTENT_TYPE_GUID, array('content_type_guid' => BITEVENTS_CONTENT_TYPE_GUID, 'content_name' => 'Event', 'handler_class' => 'BitEvents', 'handler_package' => 'events', 'handler_file' => 'BitEvents.php', 'maintainer_url' => 'http://wired.st-and.ac.uk/~hash9/'));
     $this->mDate = new BitDate();
     $this->mDate->get_display_offset();
     // Permission setup
     $this->mViewContentPerm = 'p_events_view';
     $this->mCreateContentPerm = 'p_events_create';
     $this->mUpdateContentPerm = 'p_events_update';
     $this->mAdminContentPerm = 'p_events_admin';
 }
Ejemplo n.º 19
0
 /**
  * BitTicket During initialisation, be sure to call our base constructors
  * 
  * @param numeric $pTicketId 
  * @param numeric $pContentId 
  * @access public
  * @return void
  */
 function BitTicket($pTicketId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mTicketId = $pTicketId;
     $this->mContentId = $pContentId;
     $this->mAssigneeId = NULL;
     $this->mAttributes = array();
     $this->mContentTypeGuid = BITTICKET_CONTENT_TYPE_GUID;
     $this->registerContentType(BITTICKET_CONTENT_TYPE_GUID, array('content_type_guid' => BITTICKET_CONTENT_TYPE_GUID, 'content_name' => 'Ticket', 'handler_class' => 'BitTicket', 'handler_package' => 'tickets', 'handler_file' => 'BitTicket.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_tickets_view';
     $this->mCreateContentPerm = 'p_tickets_create';
     $this->mUpdateContentPerm = 'p_tickets_update';
     $this->mAdminContentPerm = 'p_tickets_admin';
 }
Ejemplo n.º 20
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function BitGroup($pGroupId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->mGroupId = (int) $pGroupId;
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = BITGROUP_CONTENT_TYPE_GUID;
     $this->registerContentType(BITGROUP_CONTENT_TYPE_GUID, array('content_type_guid' => BITGROUP_CONTENT_TYPE_GUID, 'content_name' => 'Group', 'handler_class' => 'BitGroup', 'handler_package' => 'group', 'handler_file' => 'BitGroup.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     // Permission setup
     $this->mViewContentPerm = 'p_group_view';
     $this->mCreateContentPerm = 'p_group_create';
     $this->mUpdateContentPerm = 'p_group_update';
     $this->mAdminContentPerm = 'p_group_admin';
     // A reference to the group's affiliated board, see getBoard() below
     $this->mBoardObj = NULL;
 }
Ejemplo n.º 21
0
 /**
  * Initiate the articles class
  * @param $pArticleId article id of the article we want to view
  * @param $pContentId content id of the article we want to view
  * @access private
  **/
 function __construct($pArticleId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITARTICLE_CONTENT_TYPE_GUID, array('content_type_guid' => BITARTICLE_CONTENT_TYPE_GUID, 'content_name' => 'Article', 'handler_class' => 'BitArticle', 'handler_package' => 'articles', 'handler_file' => 'BitArticle.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mContentId = $pContentId;
     $this->mArticleId = $pArticleId;
     $this->mTypeId = NULL;
     $this->mTopicId = NULL;
     $this->mContentTypeGuid = BITARTICLE_CONTENT_TYPE_GUID;
     $this->mDate = new BitDate();
     $offset = $this->mDate->get_display_offset();
     // Permission setup
     $this->mViewContentPerm = 'p_articles_read';
     $this->mCreateContentPerm = 'p_articles_submit';
     $this->mUpdateContentPerm = 'p_articles_update';
     $this->mAdminContentPerm = 'p_articles_admin';
 }
Ejemplo n.º 22
0
 /**
  * initiate class
  * @param $pContentId content id of the pigeonhole - use either one of the ids.
  * @param $pStructureId structure id of the pigeonhole - use either one of the ids.
  * @param $pMembersList hash with optional values to tweak the getMemberList loading sql. Used keys are Order, Select, Join and Where.
  * @return none
  * @access public
  **/
 function Pigeonholes($pStructureId = NULL, $pContentId = NULL, $pMemberList = Null)
 {
     parent::__construct();
     $this->registerContentType(PIGEONHOLES_CONTENT_TYPE_GUID, array('content_type_guid' => PIGEONHOLES_CONTENT_TYPE_GUID, 'content_name' => 'Pigeonhole', 'handler_class' => 'Pigeonholes', 'handler_package' => 'pigeonholes', 'handler_file' => 'Pigeonholes.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mContentId = $pContentId;
     $this->mStructureId = $pStructureId;
     $this->mContentTypeGuid = PIGEONHOLES_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_pigeonholes_view';
     $this->mUpdateContentPerm = 'p_pigeonholes_update';
     $this->mAdminContentPerm = 'p_pigeonholes_update';
     // use edit until we find the need for an admin permission
     // Allow specially constructed pigeonholes to mess with the
     // getMemberList SQL so that additional data can be added on.
     // This can be used in packages which want a special view on
     // a category.
     $this->mMemberList = $pMemberList;
 }
Ejemplo n.º 23
0
 function __construct()
 {
     $this->mGalleryPath = '';
     parent::__construct();
 }