Example #1
0
 /**
  * Initiate class
  *
  * @param $pContentId content id of the treasury - use either one of the ids.
  * @return none
  * @access public
  **/
 function TreasuryItem($pDummy = NULL, $pContentId = NULL)
 {
     TreasuryBase::TreasuryBase();
     $this->registerContentType(TREASURYITEM_CONTENT_TYPE_GUID, array('content_type_guid' => TREASURYITEM_CONTENT_TYPE_GUID, 'content_name' => 'Uploaded File', 'handler_class' => 'TreasuryItem', 'handler_package' => 'treasury', 'handler_file' => 'TreasuryItem.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mContentId = !empty($pDummy) ? $pDummy : $pContentId;
     $this->mContentTypeGuid = TREASURYITEM_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_treasury_view_item';
     $this->mCreateContentPerm = 'p_treasury_upload_item';
     $this->mUpdateContentPerm = 'p_treasury_update_item';
     $this->mAdminContentPerm = 'p_treasury_admin';
 }
Example #2
0
 /**
  * Initiate class
  *
  * @param $pContentId content id of the treasury - use either one of the ids.
  * @param $pStructureId structure id of the treasury - use either one of the ids.
  * @return none
  * @access public
  **/
 function TreasuryGallery($pStructureId = NULL, $pContentId = NULL)
 {
     TreasuryBase::TreasuryBase();
     $this->registerContentType(TREASURYGALLERY_CONTENT_TYPE_GUID, array('content_type_guid' => TREASURYGALLERY_CONTENT_TYPE_GUID, 'content_name' => 'File Gallery', 'content_name_plural' => 'File Galleries', 'handler_class' => 'TreasuryGallery', 'handler_package' => 'treasury', 'handler_file' => 'TreasuryGallery.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mContentId = $pContentId;
     $this->mStructureId = $pStructureId;
     $this->mContentTypeGuid = TREASURYGALLERY_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_treasury_view_gallery';
     $this->mCreateContentPerm = 'p_treasury_create_gallery';
     $this->mUpdateContentPerm = 'p_treasury_update_gallery';
     $this->mAdminContentPerm = 'p_treasury_admin';
 }