• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AssetLoadManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ListForms

 public function ListForms()
 {
     AssetLoadManager::register('tableList');
     $t_form = new ca_search_forms();
     $this->view->setVar('t_form', $t_form);
     $this->view->setVar('form_list', $va_forms = caExtractValuesByUserLocale($t_form->getForms(array('user_id' => $this->request->getUserID(), 'access' => __CA_SEARCH_FORM_EDIT_ACCESS__)), null, null, array()));
     $o_result_context = new ResultContext($this->request, 'ca_search_forms', 'basic_search');
     $o_result_context->setAsLastFind();
     $o_result_context->setResultList(is_array($va_forms) ? array_keys($va_forms) : array());
     $o_result_context->saveContext();
     $this->view->setVar('table_list', caFilterTableList($t_form->getFieldInfo('table_num', 'BOUNDS_CHOICE_LIST')));
     $this->render('search_form_list_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:13,代码来源:SearchFormController.php


示例17: info

 public function info($pa_parameters)
 {
     AssetLoadManager::register('panel');
     parent::info($pa_parameters);
     $vn_annotation_id = isset($pa_parameters['annotation_id']) ? $pa_parameters['annotation_id'] : null;
     $t_annotation = new ca_representation_annotations($vn_annotation_id);
     $t_rep = new ca_object_representations($t_annotation->get('representation_id'));
     if ($vn_annotation_id) {
         $this->view->setVar('screen', $this->request->getActionExtra());
         // name of screen
         // find object editor screen with media bundle
         $t_ui = ca_editor_uis::loadDefaultUI('ca_object_representations', $this->request, $t_rep->getTypeID());
         $this->view->setVar('representation_editor_screen', $t_ui->getScreenWithBundle('ca_representation_annotations', $this->request));
     }
     return $this->render('widget_representation_annotation_info_html.php', true);
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:16,代码来源:RepresentationAnnotationEditorController.php


示例18: Index

 public function Index()
 {
     AssetLoadManager::register('tableList');
     $t_search_log = new Searchlog();
     $va_search_list = array();
     if (!($ps_search = $this->request->getParameter('search', pString))) {
         $ps_search = $this->request->user->getVar('search_log_search');
     }
     if ($ps_search) {
         $va_search_list = $t_search_log->search($ps_search);
         $this->request->user->setVar('search_log_search', $ps_search);
     }
     $this->view->setVar('search_list', $va_search_list);
     $this->view->setVar('search_list_search', $ps_search);
     $this->render('search_html.php');
 }
开发者ID:idiscussforum,项目名称:providence,代码行数:16,代码来源:SearchController.php


示例19: __call

 /**
  *
  */
 public function __call($ps_function, $pa_args)
 {
     AssetLoadManager::register("carousel");
     $va_access_values = caGetUserAccessValues($this->request);
     $this->view->setVar('access_values', $va_access_values);
     #
     # --- if there is a set configured to show on the front page, load it now
     #
     $va_featured_ids = array();
     if ($vs_set_code = $this->config->get("front_page_set_code")) {
         $t_set = new ca_sets();
         $t_set->load(array('set_code' => $vs_set_code));
         # Enforce access control on set
         if (sizeof($va_access_values) == 0 || sizeof($va_access_values) && in_array($t_set->get("access"), $va_access_values)) {
             $this->view->setVar('featured_set_id', $t_set->get("set_id"));
             $this->view->setVar('featured_set', $t_set);
             $va_featured_ids = array_keys(is_array($va_tmp = $t_set->getItemRowIDs(array('checkAccess' => $va_access_values, 'shuffle' => 1))) ? $va_tmp : array());
             $this->view->setVar('featured_set_item_ids', $va_featured_ids);
             $this->view->setVar('featured_set_items_as_search_result', caMakeSearchResult('ca_objects', $va_featured_ids));
         }
     }
     #
     # --- no configured set/items in set so grab random objects with media
     #
     if (sizeof($va_featured_ids) == 0) {
         $t_object = new ca_objects();
         $va_featured_ids = array_keys($t_object->getRandomItems(10, array('checkAccess' => $va_access_values, 'hasRepresentations' => 1)));
         $this->view->setVar('featured_set_item_ids', $va_featured_ids);
         $this->view->setVar('featured_set_items_as_search_result', caMakeSearchResult('ca_objects', $va_featured_ids));
     }
     $this->view->setVar('config', $this->config);
     $o_result_context = new ResultContext($this->request, 'ca_objects', 'front');
     $this->view->setVar('result_context', $o_result_context);
     $o_result_context->setAsLastFind();
     //
     // Try to load selected page if it exists in Front/, otherwise load default Front/front_page_html.php
     //
     $ps_function = preg_replace("![^A-Za-z0-9_\\-]+!", "", $ps_function);
     $vs_path = "Front/{$ps_function}_html.php";
     if (file_exists(__CA_THEME_DIR__ . "/views/{$vs_path}")) {
         $this->render($vs_path);
     } else {
         $this->render("Front/front_page_html.php");
     }
 }
开发者ID:ffarago,项目名称:pawtucket2,代码行数:48,代码来源:FrontController.php


示例20: Edit

 public function Edit($pa_values = null, $pa_options = null)
 {
     AssetLoadManager::register('bundleableEditor');
     $t_element = $this->getElementObject();
     $t_restriction = new ca_metadata_type_restrictions(null, true);
     $this->view->setVar('available_settings', $t_element->getAvailableSettings());
     $this->view->setVar('type_list', $t_restriction->getTypeListsForTables());
     $va_initial_values = array();
     if ($t_element->getPrimaryKey()) {
         $va_sub_elements = array();
         /* BaseModel::getHierarchyChildren orders by PK, but we need to order by rank */
         $vo_db = new Db();
         $qr_result = $vo_db->query("\n\t\t\t\tSELECT cmel.*, cme.* \n\t\t\t\tFROM ca_metadata_elements cme\n\t\t\t\tLEFT JOIN ca_metadata_element_labels AS cmel ON cme.element_id = cmel.element_id\n\t\t\t\tWHERE\n\t\t\t\t\tcme.parent_id = ?\n\t\t\t\tORDER BY\n\t\t\t\t\tcme.rank\n\t\t\t", (int) $t_element->get('element_id'));
         while ($qr_result->nextRow()) {
             $va_row = $qr_result->getRow();
             if (!$va_row['name']) {
                 $va_row['name'] = $va_row['element_code'];
             }
             $va_sub_elements[$qr_result->get('element_id')][$qr_result->get('locale_id')] = $va_row;
         }
         $va_sub_elements = caExtractValuesByUserLocale($va_sub_elements);
         $this->view->setVar('sub_elements', $va_sub_elements);
         // get restrictions
         $this->view->setVar('type_restrictions', $va_type_restrictions = $t_element->getTypeRestrictions());
         $va_restriction_settings = $t_restriction->getAvailableSettings();
         if (is_array($va_type_restrictions)) {
             foreach ($va_type_restrictions as $va_restriction) {
                 if ($t_restriction->load($va_restriction['restriction_id'])) {
                     foreach ($va_restriction_settings as $vs_setting => $va_setting_info) {
                         if (!is_array($va_settings = $t_restriction->getSettings())) {
                             $va_settings = array();
                         }
                         $va_initial_values[$t_restriction->getPrimaryKey()] = array_merge($t_restriction->getFieldValuesArray(), $va_settings);
                     }
                 }
             }
         }
     }
     $this->view->setVar('initial_restriction_values', $va_initial_values);
     if ($vn_parent_id = $this->request->getParameter('parent_id', pInteger)) {
         $this->view->setVar('parent_id', $vn_parent_id);
     }
     $this->view->setVar('t_restriction', $t_restriction);
     $this->render('elements_edit_html.php');
 }
开发者ID:samrahman,项目名称:providence,代码行数:45,代码来源:ElementsController.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP AssetModel类代码示例发布时间:2022-05-23
下一篇:
PHP AssetFileModel类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap