当前位置: 首页>>代码示例>>PHP>>正文


PHP AssetLoadManager类代码示例

本文整理汇总了PHP中AssetLoadManager的典型用法代码示例。如果您正苦于以下问题:PHP AssetLoadManager类的具体用法?PHP AssetLoadManager怎么用?PHP AssetLoadManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AssetLoadManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Index

 public function Index($pa_options = null)
 {
     AssetLoadManager::register('imageScroller');
     AssetLoadManager::register('tabUI');
     AssetLoadManager::register('panel');
     parent::Index($pa_options);
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:7,代码来源:BrowseObjectsController.php

示例2: Index

 /**
  * Advanced search handler (returns search form and results, if any)
  * Most logic is contained in the BaseAdvancedSearchController->Index() method; all you usually
  * need to do here is instantiate a new subject-appropriate subclass of BaseSearch 
  * (eg. ObjectSearch for objects, TourSearch for tours) and pass it to BaseAdvancedSearchController->Index() 
  */
 public function Index($pa_options = null)
 {
     $pa_options['search'] = $this->opo_browse;
     AssetLoadManager::register('imageScroller');
     AssetLoadManager::register('tabUI');
     return parent::Index($pa_options);
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:13,代码来源:SearchToursAdvancedController.php

示例3: Calendar

 /**
  * 
  */
 public function Calendar()
 {
     AssetLoadManager::register('calendar');
     $o_result_context = new ResultContext($this->request, 'ca_commerce_orders', 'basic_search_calendar');
     $this->_initView($o_result_context);
     $this->render('calendar_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:10,代码来源:ListController.php

示例4: __construct

 public function __construct(&$po_request, &$po_response, $pa_view_paths = null)
 {
     parent::__construct($po_request, $po_response, $pa_view_paths);
     $this->opa_views = array('list' => _t('list'));
     $this->opa_sorts = array('ca_items_x_tags.created_on' => _t('date'), 'ca_items_x_tags.user_id' => _t('user'));
     AssetLoadManager::register('tableList');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:7,代码来源:TagsController.php

示例5: Index

 /**
  * List
  *
  * @param array $pa_values An optional array of values to preset in the format, overriding any existing values in the model of the record being editing.
  * @param array $pa_options Array of options passed through to _initView
  *
  */
 public function Index($pa_values = null, $pa_options = null)
 {
     AssetLoadManager::register('tableList');
     AssetLoadManager::register('fileupload');
     $va_exporters = ca_data_exporters::getExporters();
     $this->getView()->setVar('exporter_list', $va_exporters);
     $this->render('export/exporter_list_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:15,代码来源:MetadataExportController.php

示例6: ListLocales

 public function ListLocales()
 {
     AssetLoadManager::register('tableList');
     $t_locale = $this->getLocaleObject();
     $vs_sort_field = $this->request->getParameter('sort', pString);
     $this->view->setVar('locale_list', ca_locales::getLocaleList(array('sort_field' => $vs_sort_field, 'sort_order' => 'asc', 'index_by_code' => false)));
     $this->render('locale_list_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:8,代码来源:LocalesController.php

示例7: __construct

 public function __construct($ps_widget_path, $pa_settings)
 {
     $this->title = _t('Processing status');
     $this->description = _t('View the current status of queued processing tasks');
     parent::__construct($ps_widget_path, $pa_settings);
     $this->opo_config = Configuration::load($ps_widget_path . '/conf/trackProcessing.conf');
     $this->opo_db = new Db();
     AssetLoadManager::register('prettyDate');
 }
开发者ID:samrahman,项目名称:providence,代码行数:9,代码来源:trackProcessingWidget.php

示例8: Index

 /**
  * Display list of available tools
  */
 public function Index($pa_values = null, $pa_options = null)
 {
     if (!$this->request->isLoggedIn() || !$this->request->user->canDoAction('can_use_plugin_tools')) {
         $this->response->setRedirect($this->request->config->get('error_display_url') . '/n/3500?r=' . urlencode($this->request->getFullUrlPath()));
         return;
     }
     AssetLoadManager::register('tableList');
     $this->view->setVar('tool_list', $this->opo_tools_manager->getTools());
     $this->render('tools/tools_list_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:13,代码来源:ToolsController.php

示例9: __construct

 public function __construct(&$po_request, &$po_response, $pa_view_paths = null)
 {
     parent::__construct($po_request, $po_response, $pa_view_paths);
     $this->opa_views = array('list' => _t('list'), 'editable' => _t('editable'));
     $this->opa_sorts = array_merge(array('_natural' => _t('relevance'), 'ca_occurrence_labels.name_sort' => _t('name'), 'ca_occurrences.idno_sort' => _t('idno')), $this->opa_sorts);
     $this->opo_browse = new OccurrenceBrowse($this->opo_result_context->getParameter('browse_id'), 'providence');
     AssetLoadManager::register('imageScroller');
     AssetLoadManager::register('tabUI');
     AssetLoadManager::register('panel');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:10,代码来源:SearchOccurrencesController.php

示例10: __construct

 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();
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:10,代码来源:CheckInController.php

示例11: DoCheck

 public function DoCheck()
 {
     AssetLoadManager::register('tableList');
     // Search engine
     $vo_search_config_settings = SearchEngine::checkPluginConfiguration();
     $this->view->setVar('search_config_settings', $vo_search_config_settings);
     $this->view->setVar('search_config_engine_name', SearchEngine::getPluginEngineName());
     // Media
     $t_media = new Media();
     $va_plugin_names = $t_media->getPluginNames();
     $va_plugins = array();
     foreach ($va_plugin_names as $vs_plugin_name) {
         if ($va_plugin_status = $t_media->checkPluginStatus($vs_plugin_name)) {
             $va_plugins[$vs_plugin_name] = $va_plugin_status;
         }
     }
     $this->view->setVar('media_config_plugin_list', $va_plugins);
     // PDF Rendering
     $t_pdf_renderer = new PDFRenderer();
     $va_plugin_names = PDFRenderer::getAvailablePDFRendererPlugins();
     $va_plugins = array();
     foreach ($va_plugin_names as $vs_plugin_name) {
         if ($va_plugin_status = $t_pdf_renderer->checkPluginStatus($vs_plugin_name)) {
             $va_plugins[$vs_plugin_name] = $va_plugin_status;
         }
     }
     $this->view->setVar('pdf_renderer_config_plugin_list', $va_plugins);
     // Application plugins
     $va_plugin_names = ApplicationPluginManager::getPluginNames();
     $va_plugins = array();
     foreach ($va_plugin_names as $vs_plugin_name) {
         if ($va_plugin_status = ApplicationPluginManager::checkPluginStatus($vs_plugin_name)) {
             $va_plugins[$vs_plugin_name] = $va_plugin_status;
         }
     }
     $this->view->setVar('application_config_plugin_list', $va_plugins);
     // Barcode generation
     $vb_gd_is_available = caMediaPluginGDInstalled(true);
     $va_barcode_components = array();
     $va_gd = array('name' => 'GD', 'description' => _t('GD is a graphics processing library required for all barcode generation.'));
     if (!$vb_gd_is_available) {
         $va_gd['errors'][] = _t('Is not installed; barcode printing will not be possible.');
     }
     $va_gd['available'] = $vb_gd_is_available;
     $va_barcode_components['GD'] = $va_gd;
     $this->view->setVar('barcode_config_component_list', $va_barcode_components);
     // General system configuration issues
     if (!(bool) $this->request->config->get('dont_do_expensive_configuration_checks_in_web_ui')) {
         ConfigurationCheck::performExpensive();
         if (ConfigurationCheck::foundErrors()) {
             $this->view->setVar('configuration_check_errors', ConfigurationCheck::getErrors());
         }
     }
     $this->render('config_check_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:55,代码来源:ConfigurationCheckController.php

示例12: _initView

 protected function _initView($pa_options = null)
 {
     AssetLoadManager::register('bundleableEditor');
     AssetLoadManager::register('sortableUI');
     $va_init = parent::_initView($pa_options);
     if (!$va_init[1]->getPrimaryKey()) {
         $va_init[1]->set('user_id', $this->request->getUserID());
         $va_init[1]->set('table_num', $this->request->getParameter('table_num', pInteger));
     }
     return $va_init;
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:11,代码来源:SetEditorController.php

示例13: __construct

 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');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:12,代码来源:CheckInController.php

示例14: __construct

 /**
  * Initialize 
  *
  */
 public function __construct($ps_table = null)
 {
     $this->opo_config = Configuration::load();
     $this->opo_viz_config = Configuration::load($this->opo_config->get('visualization_config'));
     $this->reset();
     if ($ps_table) {
         $this->setTable($ps_table);
     }
     // Need to pull in Javascript for these in case they are loaded via AJAX
     AssetLoadManager::register("openlayers");
     AssetLoadManager::register("maps");
     AssetLoadManager::register("timeline");
 }
开发者ID:ffarago,项目名称:pawtucket2,代码行数:17,代码来源:Visualizer.php

示例15: ListDisplays

 public function ListDisplays()
 {
     AssetLoadManager::register('tableList');
     $t_display = new ca_bundle_displays();
     $this->view->setVar('t_display', $t_display);
     $this->view->setVar('display_list', $va_displays = caExtractValuesByUserLocale($t_display->getBundleDisplays(array('user_id' => $this->request->getUserID(), 'access' => __CA_BUNDLE_DISPLAY_EDIT_ACCESS__)), null, null, array()));
     $o_result_context = new ResultContext($this->request, 'ca_bundle_displays', 'basic_search');
     $o_result_context->setAsLastFind();
     $o_result_context->setResultList(is_array($va_displays) ? array_keys($va_displays) : array());
     $o_result_context->saveContext();
     $this->view->setVar('table_list', caFilterTableList($t_display->getFieldInfo('table_num', 'BOUNDS_CHOICE_LIST')));
     $this->render('bundle_display_list_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:13,代码来源:BundleDisplaysController.php


注:本文中的AssetLoadManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。