function __construct($pStructureId = NULL, $pContentId = NULL) { // we need to init our database connection early parent::__construct(); $this->mStructureId = $pStructureId; $this->mContentId = $pContentId; }
/** * During initialisation, be sure to call our base constructors **/ function __construct($pContentId = NULL) { $this->mContentId = $pContentId; parent::__construct(); }
/** * Construct an empty LibertyBase object with a blank permissions array */ function __construct() { parent::__construct(); $this->mPrefs = NULL; // init to NULL so getPreference can determine if a load is necessary // NOTE: we are not assigning anything to mViewContentPerm. if this is empty, we will return TRUE in hasViewPermission() if (empty($this->mUpdateContentPerm)) { $this->mUpdateContentPerm = 'p_admin_content'; } if (empty($this->mCreateContentPerm)) { $this->mCreateContentPerm = 'p_admin_content'; } if (empty($this->mExpungeContentPerm)) { $this->mExpungeContentPerm = 'p_admin_content'; } if (empty($this->mAdminContentPerm)) { $this->mAdminContentPerm = 'p_admin_content'; } }
function LibertyGeo($pContentId = NULL) { parent::__construct(); $this->mContentId = $pContentId; }