Ejemplo n.º 1
0
 function Calendar()
 {
     parent::__construct();
     global $gBitUser;
     $this->mDate = new BitDate(0);
     $this->display_offset = $this->mDate->get_display_offset();
 }
Ejemplo n.º 2
0
 function Address($pAddressId)
 {
     parent::__construct();
     if (is_numeric($pAddressId)) {
         $this->mAddressId = $pAddressId;
     }
 }
Ejemplo n.º 3
0
 /**
  * Constructor 
  * 
  * Build an Warehouse object based on LibertyContent
  * @param integer Warehouse identifer
  * @param integer Base content_id identifier 
  */
 function Warehouse($pWarehouseId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(WAREHOUSE_CONTENT_TYPE_GUID, array('content_type_guid' => WAREHOUSE_CONTENT_TYPE_GUID, 'content_name' => 'Warehosue Location', 'handler_class' => 'Warehouse', 'handler_package' => 'warehouse', 'handler_file' => 'Warehouse.php', 'maintainer_url' => 'http://www.lsces.co.uk'));
     $this->mWarehouseId = (int) $pWarehouseId;
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = WAREHOUSE_CONTENT_TYPE_GUID;
 }
Ejemplo n.º 4
0
 /**
  * Constructor 
  * 
  * Build an Warehouse object based on LibertyContent
  * @param integer Warehouse identifer
  * @param integer Base content_id identifier 
  */
 function Pallet($pPalletId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(PALLET_CONTENT_TYPE_GUID, array('content_type_guid' => PALLET_CONTENT_TYPE_GUID, 'content_name' => 'Pallet Location', 'handler_class' => 'Pallet', 'handler_package' => 'warehouse', 'handler_file' => 'Pallet.php', 'maintainer_url' => 'http://lsces.co.uk'));
     $this->mPalletId = $pPalletId;
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = PALLET_CONTENT_TYPE_GUID;
 }
Ejemplo n.º 5
0
 function BitSticky($pStickyId = NULL, $pContentId = NULL, $pNotatedContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITSTICKY_CONTENT_TYPE_GUID, array('content_type_guid' => BITSTICKY_CONTENT_TYPE_GUID, 'content_name' => 'Sticky', 'content_name_plural' => 'Stickies', 'handler_class' => 'BitSticky', 'handler_package' => 'stickies', 'handler_file' => 'BitSticky.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mStickyId = $pStickyId;
     $this->mContentId = $pContentId;
     $this->mNotatedContentId = $pNotatedContentId;
     $this->mContentTypeGuid = BITSTICKY_CONTENT_TYPE_GUID;
 }
Ejemplo n.º 6
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function __construct()
 {
     parent::__construct();
     // Permission setup
     $this->mViewContentPerm = 'p_gmap_overlayset_view';
     $this->mCreateContentPerm = 'p_gmap_overlayset_create';
     $this->mUpdateContentPerm = 'p_gmap_overlayset_update';
     $this->mAdminContentPerm = 'p_gmap_admin';
 }
Ejemplo n.º 7
0
 /**
  * Constructor 
  * 
  * Build a Client object based on LibertyContent
  * @param integer Client Id identifer
  * @param integer Base content_id identifier 
  */
 function Client($pClientId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(CLIENT_CONTENT_TYPE_GUID, array('content_type_guid' => CLIENT_CONTENT_TYPE_GUID, 'content_name' => 'Client Entry', 'handler_class' => 'Client', 'handler_package' => 'warehouse', 'handler_file' => 'Client.php', 'maintainer_url' => 'http://lsces.co.uk'));
     $this->mClientId = $pClientId;
     $this->mContentTypeGuid = CLIENT_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_warehouse_view';
     $this->mUpdateContentPerm = 'p_warehouse_edit';
     $this->mAdminContentPerm = 'p_warehouse_admin';
 }
Ejemplo n.º 8
0
 function __construct($pNlId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(BITNEWSLETTER_CONTENT_TYPE_GUID, array('content_type_guid' => BITNEWSLETTER_CONTENT_TYPE_GUID, 'content_name' => 'Newsletter', 'handler_class' => 'BitNewsletter', 'handler_package' => 'newsletters', 'handler_file' => 'BitNewsletter.php', 'maintainer_url' => 'http://www.bitweaver.org'));
     $this->mNewsletterId = $this->verifyId($pNlId) ? $pNlId : NULL;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITNEWSLETTER_CONTENT_TYPE_GUID;
     // Permission setup
     //$this->mViewContentPerm  = '';
     $this->mUpdateContentPerm = 'p_newsletters_create';
     $this->mAdminContentPerm = 'p_newsletters_admin';
 }
Ejemplo n.º 9
0
 /**
  * Constructor 
  * 
  * Build a Contact object based on LibertyContent
  * @param integer Contact Id identifer
  * @param integer Base content_id identifier 
  */
 function Contacts($pContactId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(CONTACTS_CONTENT_TYPE_GUID, array('content_type_guid' => CONTACTS_CONTENT_TYPE_GUID, 'content_name' => 'Contact Entry', 'handler_class' => 'Contacts', 'handler_package' => 'contacts', 'handler_file' => 'Contacts.php', 'maintainer_url' => 'http://www.lsces.co.uk'));
     $this->mContactId = (int) $pContactId;
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = CONTACTS_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_contacts_view';
     $this->mCreateContentPerm = 'p_contacts_create';
     $this->mUpdateContentPerm = 'p_contacts_update';
     $this->mAdminContentPerm = 'p_contacts_admin';
 }
Ejemplo n.º 10
0
 /**
  * During initialisation, be sure to call our base constructors
  **/
 function BitNlpg($pRecId = NULL, $pContentId = NULL)
 {
     parent::__construct($pContentId);
     $this->mUSRN = $pRecId;
     $this->mUPRN = $pRecId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = BITNLPG_CONTENT_TYPE_GUID;
     $this->registerContentType(BITNLPG_CONTENT_TYPE_GUID, array('content_type_guid' => BITNLPG_CONTENT_TYPE_GUID, 'content_name' => 'Nlpg', 'handler_class' => 'BitNlpg', 'handler_package' => 'nlpg', 'handler_file' => 'BitNlpg.php', 'maintainer_url' => 'http://www.lsces.co.uk/'));
     // Permission setup
     $this->mViewContentPerm = 'p_nlpg_view';
     $this->mCreateContentPerm = 'p_nlpg_create';
     $this->mUpdateContentPerm = 'p_nlpg_update';
     $this->mAdminContentPerm = 'p_nlpg_admin';
 }
Ejemplo n.º 11
0
 /**
  * Constructor 
  * 
  * Build a Citizen object based on LibertyContent
  * @param integer Citizen Id identifer
  * @param integer Base content_id identifier 
  */
 function Tasks($pTicketId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(TASKS_CONTENT_TYPE_GUID, array('content_type_guid' => TASKS_CONTENT_TYPE_GUID, 'content_name' => 'Task Ticket', 'handler_class' => 'Tasks', 'handler_package' => 'tasks', 'handler_file' => 'Tasks.php', 'maintainer_url' => 'http://lsces.co.uk'));
     $this->mTicketId = (int) $pTicketId;
     $this->mContentId = (int) $pContentId;
     $this->mCitizenId = 0;
     $this->mContentTypeGuid = TASKS_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_tasks_view';
     $this->mCreateContentPerm = 'p_tasks_create';
     $this->mUpdateContentPerm = 'p_tasks_update';
     $this->mAdminContentPerm = 'p_tasks_admin';
 }
Ejemplo n.º 12
0
 /**
  * Constructor 
  * 
  * Build a Citizen object based on LibertyContent
  * @param integer Citizen Id identifer
  * @param integer Base content_id identifier 
  */
 function Citizen($pCitizenId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType(CITIZEN_CONTENT_TYPE_GUID, array('content_type_guid' => CITIZEN_CONTENT_TYPE_GUID, 'content_name' => 'Citizen Entry', 'handler_class' => 'Citizen', 'handler_package' => 'citizen', 'handler_file' => 'Citizen.php', 'maintainer_url' => 'http://lsces.co.uk'));
     $this->mCitizenId = (int) $pCitizenId;
     if ($pContentId > 9000000000) {
         $pContentId = $pContentId - 9000000000;
     }
     $this->mContentId = (int) $pContentId;
     $this->mContentTypeGuid = CITIZEN_CONTENT_TYPE_GUID;
     // Permission setup
     $this->mViewContentPerm = 'p_citizen_view';
     $this->mCreateContentPerm = 'p_citizen_create';
     $this->mUpdateContentPerm = 'p_citizen_update';
     $this->mAdminContentPerm = 'p_citizen_admin';
 }
Ejemplo n.º 13
0
 function BitGEDCOM($pGEDCOMId = NULL, $pContentId = NULL)
 {
     parent::__construct();
     $this->registerContentType('bitGEDCOM', array('content_type_guid' => 'bitGEDCOM', 'content_name' => 'Gedcom Archive', 'handler_class' => 'bitGEDCOM', 'handler_package' => 'phpgedview', 'handler_file' => 'BitGEDCOM.php', 'maintainer_url' => 'http://lsces.org.uk/'));
     $this->mGEDCOMId = $pGEDCOMId;
     $this->mContentId = $pContentId;
     $this->mContentTypeGuid = 'bitGEDCOM';
     if (!@$this->verifyId($this->mGEDCOMId)) {
         $this->mGEDCOMId = NULL;
     } else {
         $this->mGEDCOMId = 1;
     }
     if (!@$this->verifyId($this->mContentId)) {
         $this->mContentId = NULL;
     }
     // TODO - Bodge to get started - to be replaced with default BitGEDCOM
     global $GEDCOM;
     if (!isset($GEDCOM)) {
         $GEDCOM = "CAINE.GED";
         $this->mGedcomName = "CAINE.GED";
         $this->mGEDCOMId = 1;
     }
 }
Ejemplo n.º 14
0
 function LibertyAttachable()
 {
     parent::__construct();
 }
Ejemplo n.º 15
0
 /**
  * Initiate Liberty Recommends
  * 
  * @param array $pContentId Content id of the item being recommended
  * @access public
  * @return void
  */
 function __construct($pContentId = NULL)
 {
     parent::__construct();
     $this->mContentId = $pContentId;
 }
Ejemplo n.º 16
0
 /**
  * Constructs a ModerationSystem. This shouldn't really be called.
  * Use the $gModerationSystem instance instead which is created
  * for you if you include this file.
  */
 function ModerationSystem()
 {
     // Not much to do here
     $mPackages = array();
     parent::__construct();
 }