public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { $this->ops_theme = __CA_THEME__; // get current theme if (!is_dir(__CA_APP_DIR__ . '/plugins/eastend/themes/' . $this->ops_theme . '/views')) { // if theme is not defined for this plugin, try to use "default" theme $this->ops_theme = 'default'; } parent::__construct($po_request, $po_response, array(__CA_APP_DIR__ . '/plugins/eastend/themes/' . $this->ops_theme . '/views')); MetaTagManager::addLink('stylesheet', $po_request->getBaseUrlPath() . "/app/plugins/eastend/themes/" . $this->ops_theme . "/css/eastend.css", 'text/css'); $this->opo_plugin_config = Configuration::load($this->request->getAppConfig()->get('application_plugins') . '/eastend/conf/eastend.conf'); if (!(bool) $this->opo_plugin_config->get('enabled')) { die(_t('eastend plugin is not enabled')); } // redirect user if not logged in if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "form")); } if ($this->request->config->get("dont_enforce_access_settings")) { $this->opa_access_values = array(); } else { $this->opa_access_values = caGetUserAccessValues($this->request); } $this->view->setVar('access_values', $va_access_values); $this->opo_result_context = new ResultContext($po_request, 'ca_objects', ResultContext::getLastFind($po_request, 'ca_objects')); JavascriptLoadManager::register('cycle'); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn() || $this->request->config->get('show_bristol_only') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "form")); } }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { $this->ops_theme = __CA_THEME__; // get current theme if (!is_dir(__CA_APP_DIR__ . '/plugins/MetabolicChronology/themes/' . $this->ops_theme . '/views')) { // if theme is not defined for this plugin, try to use "default" theme $this->ops_theme = 'default'; } parent::__construct($po_request, $po_response, array(__CA_APP_DIR__ . '/plugins/MetabolicChronology/themes/' . $this->ops_theme . '/views')); $this->opo_plugin_config = Configuration::load($this->request->getAppConfig()->get('application_plugins') . '/MetabolicChronology/conf/Chronology.conf'); if (!(bool) $this->opo_plugin_config->get('enabled')) { die(_t('Metabolic Chronology plugin is not enabled')); } $this->_initView($pa_options); $this->opo_result_context = new ResultContext($po_request, 'ca_objects', 'MetabolicChronology'); MetaTagManager::addLink('stylesheet', $po_request->getBaseUrlPath() . "/app/plugins/MetabolicChronology/themes/" . $this->ops_theme . "/css/chronology.css", 'text/css'); JavascriptLoadManager::register('jcarousel'); JavascriptLoadManager::register('maps'); $t_list = new ca_lists(); $this->opn_silo_type_id = $t_list->getItemIDFromList('collection_types', 'silo'); $this->opn_action_type_id = $t_list->getItemIDFromList('occurrence_types', 'action'); $this->opn_context_type_id = $t_list->getItemIDFromList('occurrence_types', 'context'); $this->opn_yes_list_id = $t_list->getItemIDFromList('yes_no', 'yes'); $t_relationship_types = new ca_relationship_types(); $this->opn_rel_type_action_display_image = $t_relationship_types->getRelationshipTypeID("ca_objects_x_occurrences", "display"); $this->opn_rel_type_action_secondary_images = $t_relationship_types->getRelationshipTypeID("ca_objects_x_occurrences", "secondary"); $va_access_values = caGetUserAccessValues($this->request); $this->opa_access_values = $va_access_values; $this->view->setVar('access_values', $va_access_values); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); // Reload user preferences config to reflect current user locale. Initial load of config file is prior to setting of preferred locale // (which requires loading of user preferences...) and does not reflect user's preferred language. $this->request->user->loadUserPrefDefs(true); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { $this->ops_theme = __CA_THEME__; // get current theme if (!is_dir(__CA_APP_DIR__ . '/plugins/NovaMuse/themes/' . $this->ops_theme . '/views')) { // if theme is not defined for this plugin, try to use "default" theme $this->ops_theme = 'default'; } parent::__construct($po_request, $po_response, array(__CA_APP_DIR__ . '/plugins/NovaMuse/themes/' . $this->ops_theme . '/views')); $this->opo_plugin_config = Configuration::load($this->request->getAppConfig()->get('application_plugins') . '/NovaMuse/conf/NovaMuse.conf'); if (!(bool) $this->opo_plugin_config->get('enabled')) { die(_t('NovaMuse plugin is not enabled')); } MetaTagManager::addLink('stylesheet', $po_request->getBaseUrlPath() . "/app/plugins/NovaMuse/themes/" . $this->ops_theme . "/css/dashboard.css", 'text/css'); $this->opo_result_context = new ResultContext($po_request, 'ca_objects', 'dashboard'); $t_list = new ca_lists(); $this->opn_member_institution_id = $t_list->getItemIDFromList('entity_types', 'member_institution'); $this->opn_individual_id = $t_list->getItemIDFromList('entity_types', 'ind'); $this->opn_family_id = $t_list->getItemIDFromList('entity_types', 'fam'); $this->opn_organization_id = $t_list->getItemIDFromList('entity_types', 'org'); $t_object = new ca_objects(); $this->opn_objectTableNum = $t_object->tableNum(); $va_access_values = caGetUserAccessValues($this->request); $this->opa_access_values = $va_access_values; $this->view->setVar('access_values', $va_access_values); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_datamodel = Datamodel::load(); $this->opo_app_plugin_manager = new ApplicationPluginManager(); $this->opo_result_context = new ResultContext($po_request, $this->ops_table_name, ResultContext::getLastFind($po_request, $this->ops_table_name)); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if (!$this->request->isLoggedIn()) { $this->response->setRedirect($this->request->config->get('error_display_url') . '/n/2320?r=' . urlencode($this->request->getFullUrlPath())); return; } }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm")); } caSetPageCSSClasses(array("staticPage")); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); //if (!$this->request->isLoggedIn() || !$this->request->user->canDoAction('can_do_search_reindex')) { // $this->response->setRedirect($this->request->config->get('error_display_url').'/n/2320?r='.urlencode($this->request->getFullUrlPath())); // return; //} }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { AssetLoadManager::register('bundleableEditor'); AssetLoadManager::register('panel'); parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_datamodel = Datamodel::load(); $this->opo_app_plugin_manager = new ApplicationPluginManager(); $this->cleanOldExportFilesFromTmpDir(); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_client_services_config = Configuration::load($this->request->config->get('client_services_config')); $this->view->setVar('client_services_config', $this->opo_client_services_config); JavascriptLoadManager::register("panel"); JavascriptLoadManager::register('cycle'); JavascriptLoadManager::register('bundleableEditor'); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm")); } $this->opa_access_values = caGetUserAccessValues($po_request); caSetPageCSSClasses(array("listing")); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); JavascriptLoadManager::register('bundleListEditorUI'); JavascriptLoadManager::register('panel'); $this->opo_datamodel = Datamodel::load(); $this->opo_app_plugin_manager = new ApplicationPluginManager(); $this->opo_result_context = new ResultContext($po_request, $this->ops_table_name, ResultContext::getLastFind($po_request, $this->ops_table_name)); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { if ($this->ops_search_class) { require_once __CA_LIB_DIR__ . "/ca/Search/" . $this->ops_search_class . ".php"; } require_once __CA_MODELS_DIR__ . "/" . $this->ops_table_name . ".php"; parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_item_instance = new $this->ops_table_name(); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_library_services_config = caGetLibraryServicesConfiguration(); if (!$this->request->isLoggedIn() || !$this->request->user->canDoAction('can_do_library_checkout') || !$this->request->config->get('enable_library_services') || !$this->request->config->get('enable_object_checkout')) { $this->response->setRedirect($this->request->config->get('error_display_url') . '/n/2320?r=' . urlencode($this->request->getFullUrlPath())); return; } }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); // we don't want headers or footers output for feeds $app = AppController::getInstance(); $app->removeAllPlugins(); // kills the pageFormat plugin added in /index.php // set http content-type header to XML $this->response->addHeader('Content-type', 'text/xml', true); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->config = caGetFrontConfig(); caSetPageCSSClasses(array("front")); if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm")); } MetaTagManager::setWindowTitle($this->request->config->get("app_display_name")); }
/** * Set up tools manager, check user privs and call parent constructor */ public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { if (!$po_request->isLoggedIn() || !$po_request->user->canDoAction('can_use_plugin_tools')) { $this->response->setRedirect($po_request->config->get('error_display_url') . '/n/3000?r=' . urlencode($po_request->getFullUrlPath())); return; } parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_datamodel = Datamodel::load(); $this->opo_tools_manager = new ToolsManager(); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if (!$this->request->isLoggedIn() || !$this->request->user->canDoAction('can_do_library_checkin') || !$this->request->config->get('enable_library_services') || !$this->request->config->get('enable_object_checkout')) { $this->response->setRedirect($this->request->config->get('error_display_url') . '/n/2320?r=' . urlencode($this->request->getFullUrlPath())); return; } AssetLoadManager::register('objectcheckin'); $this->opo_app_plugin_manager = new ApplicationPluginManager(); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { $this->opo_datamodel = Datamodel::load(); $vs_browse_table_name = $po_request->config->get('allow_browse_within_detail_for_' . $this->ops_tablename); // create object browse for filtering objects on collection detail page $this->opo_browse = $this->getBrowseInstance($vs_browse_table_name, $po_request->session->getVar($this->ops_tablename . '_' . $this->ops_appname . '_detail_current_browse_id'), $this->ops_appname . '_detail'); $this->opa_sorts = $this->getBrowseSorts($vs_browse_table_name); parent::__construct($po_request, $po_response, $pa_view_paths); JavascriptLoadManager::register('maps'); JavascriptLoadManager::register('jcarousel'); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); AssetLoadManager::register('tableList'); AssetLoadManager::register('bundleableEditor'); AssetLoadManager::register("panel"); $this->opo_app_plugin_manager = new ApplicationPluginManager(); $this->view->setVar('client_services_config', $this->opo_client_services_config = Configuration::load($this->request->config->get('client_services_config'))); $this->view->setVar('currency', $this->opo_client_services_config->get('currency')); $this->view->setVar('currency_symbol', $this->opo_client_services_config->get('currency_symbol')); $this->opo_result_context = new ResultContext($this->request, 'ca_commerce_orders', 'basic_search_library'); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if (!$po_request->user->canDoAction('can_batch_import_metadata')) { $po_response->setRedirect($po_request->config->get('error_display_url') . '/n/3400?r=' . urlencode($po_request->getFullUrlPath())); return; } AssetLoadManager::register('bundleableEditor'); AssetLoadManager::register('panel'); $this->opo_datamodel = Datamodel::load(); $this->opo_app_plugin_manager = new ApplicationPluginManager(); $this->opo_result_context = new ResultContext($po_request, $this->ops_table_name, ResultContext::getLastFind($po_request, $this->ops_table_name)); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_plugin_config = Configuration::load($this->request->getAppConfig()->get('application_plugins') . '/clir2/conf/clir2.conf'); if (!(bool) $this->opo_plugin_config->get('enabled')) { die(_t('clir2 plugin is not enabled')); } $this->ops_theme = __CA_THEME__; // get current theme if (!is_dir(__CA_APP_DIR__ . '/plugins/clir2/views/' . $this->ops_theme)) { // if theme is not defined for this plugin, try to use "default" theme $this->ops_theme = 'default'; } }
/** * */ public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_datamodel = Datamodel::load(); if ($this->ops_tablename) { $this->opo_result_context = new ResultContext($po_request, $this->ops_tablename, $this->ops_find_type); if ($this->opn_type_restriction_id = $this->opo_result_context->getTypeRestriction($pb_type_restriction_has_changed)) { $_GET['type_id'] = $this->opn_type_restriction_id; // push type_id into globals so breadcrumb trail can pick it up $this->opb_type_restriction_has_changed = $pb_type_restriction_has_changed; // get change status } } }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm")); } $this->config = caGetContactConfig(); if (!$this->config->get("contact_email") && !$this->config->get("contact_form_elements")) { $this->notification->addNotification(_t("Contact form is not configured properly"), __NOTIFICATION_TYPE_ERROR__); $this->response->setRedirect(caNavUrl($this->request, '', '', '')); } MetaTagManager::setWindowTitle($this->request->config->get("app_display_name") . ": " . _t("Contact")); caSetPageCSSClasses(array("contact")); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm")); } $this->config = caGetDetailConfig(); $this->opa_detail_types = $this->config->getAssoc('detailTypes'); $this->opo_datamodel = Datamodel::load(); $va_access_values = caGetUserAccessValues($this->request); $this->opa_access_values = $va_access_values; $this->view->setVar("access_values", $va_access_values); caSetPageCSSClasses(array("detail")); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->config = caGetContributeFormConfig(); if (!$this->config->get('enabled')) { $this->notification->addNotification(_t('Contribute form is not enabled'), __NOTIFICATION_TYPE_ERROR__); $this->response->setRedirect(caNavUrl($this->request, "", "Front", "Index")); return; } if ($this->request->config->get('pawtucket_requires_login') && !$this->request->isLoggedIn()) { $this->response->setRedirect(caNavUrl($this->request, "", "LoginReg", "LoginForm")); } caSetPageCSSClasses(array("contribute")); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); if (!$this->request->isLoggedIn()) { $this->notification->addNotification(_t("You must be logged in to view your orders"), __NOTIFICATION_TYPE_ERROR__); $this->response->setRedirect(caNavUrl($this->request, '', 'Splash', 'Index'), 302); return; } $this->opo_client_services_config = Configuration::load($this->request->config->get('client_services_config')); $this->view->setVar('client_services_config', $this->opo_client_services_config); $this->view->setVar('currency', $this->opo_client_services_config->get('currency')); $this->view->setVar('currency_symbol', $this->opo_client_services_config->get('currency_symbol')); JavascriptLoadManager::register("panel"); }
public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { parent::__construct($po_request, $po_response, $pa_view_paths); $this->opo_plugin_config = Configuration::load($this->request->getAppConfig()->get('application_plugins') . '/nysa/conf/nysa.conf'); if (!(bool) $this->opo_plugin_config->get('enabled')) { die(_t('nysa plugin is not enabled')); } $this->ops_theme = __CA_THEME__; // get current theme if (!is_dir(__CA_APP_DIR__ . '/plugins/nysa/views/' . $this->ops_theme)) { // if theme is not defined for this plugin, try to use "default" theme $this->ops_theme = 'default'; } $this->opa_worksheet_attributes = array("title" => "Title", "historical_context" => "Historical Context", "glossary" => "Glossary", "essential" => "Essential Question", "check" => "Check for Understanding", "questions" => "Questions", "challenge" => "Historical Challenge", "connections" => "Interdisciplinary Connections", "resources" => "Resources", "transcription" => "Transcription", "translation" => "Translation"); }
/** * */ public function __construct(&$po_request, &$po_response, $pa_view_paths = null) { $this->datamodel = Datamodel::load(); $this->appConfig = Configuration::load(); $vs_plugin_name = $po_request->getModulePath(); // Load plugin config $this->config = Configuration::load(__CA_APP_DIR__ . "/plugins/{$vs_plugin_name}/conf/{$vs_plugin_name}.conf"); // Load plugin view paths if (!is_array($pa_view_paths)) { $pa_view_paths = array(); } $pa_view_paths[] = __CA_APP_DIR__ . "/plugins/{$vs_plugin_name}/themes/default/views"; $pa_view_paths[] = __CA_APP_DIR__ . "/plugins/{$vs_plugin_name}/themes/" . __CA_THEME__ . "/views"; parent::__construct($po_request, $po_response, $pa_view_paths); }