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


PHP AdminController::renderOptions方法代码示例

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


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

示例1: renderOptions

 public function renderOptions()
 {
     // This field is not declared in class constructor because we want it to be manually post processed
     $this->fields_options['geolocationCountries']['fields']['countries'] = array('title' => $this->l('Select the countries from which your store is accessible'), 'type' => 'checkbox_table', 'identifier' => 'iso_code', 'list' => Country::getCountries($this->context->language->id), 'auto_value' => false);
     $this->tpl_option_vars = array('allowed_countries' => explode(';', Configuration::get('PS_ALLOWED_COUNTRIES')));
     return parent::renderOptions();
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:7,代码来源:AdminGeolocationController.php

示例2: renderOptions

 public function renderOptions()
 {
     // Set toolbar options
     $this->display = 'options';
     $this->show_toolbar = true;
     $this->toolbar_scroll = true;
     $this->initToolbar();
     return parent::renderOptions();
 }
开发者ID:Arikito,项目名称:barbator,代码行数:9,代码来源:AdminRequestSqlController.php

示例3: renderOptions

 public function renderOptions()
 {
     if (Configuration::get('PS_SAV_IMAP_URL') && Configuration::get('PS_SAV_IMAP_PORT') && Configuration::get('PS_SAV_IMAP_USER') && Configuration::get('PS_SAV_IMAP_PWD')) {
         $this->tpl_option_vars['use_sync'] = true;
     } else {
         $this->tpl_option_vars['use_sync'] = false;
     }
     return parent::renderOptions();
 }
开发者ID:zangles,项目名称:lennyba,代码行数:9,代码来源:AdminCustomerThreadsController.php

示例4: renderView

 public function renderView()
 {
     if (Tools::isSubmit('profitability_conf')) {
         return parent::renderOptions();
     }
     // $translations = array(
     // 	'Calendar' => $this->l('Calendar', 'AdminStatsTab'),
     // 	'Day' => $this->l('Day', 'AdminStatsTab'),
     // 	'Month' => $this->l('Month', 'AdminStatsTab'),
     // 	'Year' => $this->l('Year', 'AdminStatsTab'),
     // 	'From' => $this->l('From:', 'AdminStatsTab'),
     // 	'To' => $this->l('To:', 'AdminStatsTab'),
     // 	'Save' => $this->l('Save', 'AdminStatsTab')
     // );
     if ($this->context->cookie->__get('stats_date_update') < strtotime(date('Y-m-d'))) {
         switch ($this->context->employee->preselect_date_range) {
             case 'day':
                 $date_from = date('Y-m-d');
                 $date_to = date('Y-m-d');
                 break;
             case 'prev-day':
                 $date_from = date('Y-m-d', strtotime('-1 day'));
                 $date_to = date('Y-m-d', strtotime('-1 day'));
                 break;
             case 'month':
             default:
                 $date_from = date('Y-m-01');
                 $date_to = date('Y-m-d');
                 break;
             case 'prev-month':
                 $date_from = date('Y-m-01', strtotime('-1 month'));
                 $date_to = date('Y-m-t', strtotime('-1 month'));
                 break;
             case 'year':
                 $date_from = date('Y-01-01');
                 $date_to = date('Y-m-d');
                 break;
             case 'prev-year':
                 $date_from = date('Y-m-01', strtotime('-1 year'));
                 $date_to = date('Y-12-t', strtotime('-1 year'));
                 break;
         }
         $this->context->employee->stats_date_from = $date_from;
         $this->context->employee->stats_date_to = $date_to;
         $this->context->employee->update();
         $this->context->cookie->__set('stats_date_update', strtotime(date('Y-m-d')));
         $this->context->cookie->write();
     }
     $calendar_helper = new HelperCalendar();
     $calendar_helper->setDateFrom(Tools::getValue('date_from', $this->context->employee->stats_date_from));
     $calendar_helper->setDateTo(Tools::getValue('date_to', $this->context->employee->stats_date_to));
     $stats_compare_from = $this->context->employee->stats_compare_from;
     $stats_compare_to = $this->context->employee->stats_compare_to;
     if (is_null($stats_compare_from) || $stats_compare_from == '0000-00-00') {
         $stats_compare_from = null;
     }
     if (is_null($stats_compare_to) || $stats_compare_to == '0000-00-00') {
         $stats_compare_to = null;
     }
     $calendar_helper->setCompareDateFrom($stats_compare_from);
     $calendar_helper->setCompareDateTo($stats_compare_to);
     $calendar_helper->setCompareOption(Tools::getValue('compare_date_option', $this->context->employee->stats_compare_option));
     $params = array('date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to);
     $this->tpl_view_vars = array('date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to, 'hookDashboardZoneOne' => Hook::exec('dashboardZoneOne', $params), 'hookDashboardZoneTwo' => Hook::exec('dashboardZoneTwo', $params), 'action' => '#', 'warning' => $this->getWarningDomainName(), 'dashboard_use_push' => Configuration::get('PS_DASHBOARD_USE_PUSH'), 'calendar' => $calendar_helper->generate(), 'PS_DASHBOARD_SIMULATION' => Configuration::get('PS_DASHBOARD_SIMULATION'), 'datepickerFrom' => Tools::getValue('datepickerFrom', $this->context->employee->stats_date_from), 'datepickerTo' => Tools::getValue('datepickerTo', $this->context->employee->stats_date_to), 'preselect_date_range' => Tools::getValue('preselectDateRange', $this->context->employee->preselect_date_range));
     return parent::renderView();
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:66,代码来源:AdminDashboardController.php

示例5: renderView

 public function renderView()
 {
     if (Tools::isSubmit('profitability_conf')) {
         return parent::renderOptions();
     }
     // $translations = array(
     // 	'Calendar' => $this->trans('Calendar', array(),'Admin.Global'),
     // 	'Day' => $this->trans('Day', array(), 'Admin.Global'),
     // 	'Month' => $this->trans('Month', array(), 'Admin.Global'),
     // 	'Year' => $this->trans('Year', array(), 'Admin.Global'),
     // 	'From' => $this->trans('From:', array(), 'Admin.Global'),
     // 	'To' => $this->trans('To:', array(), 'Admin.Global'),
     // 	'Save' => $this->trans('Save', array(), 'Admin.Global')
     // );
     if ($this->context->cookie->__get('stats_date_update') < strtotime(date('Y-m-d'))) {
         switch ($this->context->employee->preselect_date_range) {
             case 'day':
                 $date_from = date('Y-m-d');
                 $date_to = date('Y-m-d');
                 break;
             case 'prev-day':
                 $date_from = date('Y-m-d', strtotime('-1 day'));
                 $date_to = date('Y-m-d', strtotime('-1 day'));
                 break;
             case 'month':
             default:
                 $date_from = date('Y-m-01');
                 $date_to = date('Y-m-d');
                 break;
             case 'prev-month':
                 $date_from = date('Y-m-01', strtotime('-1 month'));
                 $date_to = date('Y-m-t', strtotime('-1 month'));
                 break;
             case 'year':
                 $date_from = date('Y-01-01');
                 $date_to = date('Y-m-d');
                 break;
             case 'prev-year':
                 $date_from = date('Y-m-01', strtotime('-1 year'));
                 $date_to = date('Y-12-t', strtotime('-1 year'));
                 break;
         }
         $this->context->employee->stats_date_from = $date_from;
         $this->context->employee->stats_date_to = $date_to;
         $this->context->employee->update();
         $this->context->cookie->__set('stats_date_update', strtotime(date('Y-m-d')));
         $this->context->cookie->write();
     }
     $calendar_helper = new HelperCalendar();
     $calendar_helper->setDateFrom(Tools::getValue('date_from', $this->context->employee->stats_date_from));
     $calendar_helper->setDateTo(Tools::getValue('date_to', $this->context->employee->stats_date_to));
     $stats_compare_from = $this->context->employee->stats_compare_from;
     $stats_compare_to = $this->context->employee->stats_compare_to;
     if (is_null($stats_compare_from) || $stats_compare_from == '0000-00-00') {
         $stats_compare_from = null;
     }
     if (is_null($stats_compare_to) || $stats_compare_to == '0000-00-00') {
         $stats_compare_to = null;
     }
     $calendar_helper->setCompareDateFrom($stats_compare_from);
     $calendar_helper->setCompareDateTo($stats_compare_to);
     $calendar_helper->setCompareOption(Tools::getValue('compare_date_option', $this->context->employee->stats_compare_option));
     $params = array('date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to);
     $moduleManagerBuilder = ModuleManagerBuilder::getInstance();
     $moduleManager = $moduleManagerBuilder->build();
     $this->tpl_view_vars = array('date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to, 'hookDashboardZoneOne' => Hook::exec('dashboardZoneOne', $params), 'hookDashboardZoneTwo' => Hook::exec('dashboardZoneTwo', $params), 'action' => '#', 'warning' => $this->getWarningDomainName(), 'new_version_url' => Tools::getCurrentUrlProtocolPrefix() . _PS_API_DOMAIN_ . '/version/check_version.php?v=' . _PS_VERSION_ . '&lang=' . $this->context->language->iso_code . '&autoupgrade=' . (int) ($moduleManager->isInstalled('autoupgrade') && $moduleManager->isEnabled('autoupgrade')) . '&hosted_mode=' . (int) defined('_PS_HOST_MODE_'), 'dashboard_use_push' => Configuration::get('PS_DASHBOARD_USE_PUSH'), 'calendar' => $calendar_helper->generate(), 'PS_DASHBOARD_SIMULATION' => Configuration::get('PS_DASHBOARD_SIMULATION'), 'datepickerFrom' => Tools::getValue('datepickerFrom', $this->context->employee->stats_date_from), 'datepickerTo' => Tools::getValue('datepickerTo', $this->context->employee->stats_date_to), 'preselect_date_range' => Tools::getValue('preselectDateRange', $this->context->employee->preselect_date_range));
     return parent::renderView();
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:68,代码来源:AdminDashboardController.php

示例6: renderView

 public function renderView()
 {
     if (Tools::isSubmit('profitability_conf')) {
         return parent::renderOptions();
     }
     // $translations = array(
     // 	'Calendar' => $this->l('Calendar', 'AdminStatsTab'),
     // 	'Day' => $this->l('Day', 'AdminStatsTab'),
     // 	'Month' => $this->l('Month', 'AdminStatsTab'),
     // 	'Year' => $this->l('Year', 'AdminStatsTab'),
     // 	'From' => $this->l('From:', 'AdminStatsTab'),
     // 	'To' => $this->l('To:', 'AdminStatsTab'),
     // 	'Save' => $this->l('Save', 'AdminStatsTab')
     // );
     $calendar_helper = new HelperCalendar();
     $calendar_helper->setDateFrom(Tools::getValue('date_from', $this->context->employee->stats_date_from));
     $calendar_helper->setDateTo(Tools::getValue('date_to', $this->context->employee->stats_date_to));
     $stats_compare_from = $this->context->employee->stats_compare_from;
     $stats_compare_to = $this->context->employee->stats_compare_to;
     if (is_null($stats_compare_from) || $stats_compare_from == '0000-00-00') {
         $stats_compare_from = null;
     }
     if (is_null($stats_compare_to) || $stats_compare_to == '0000-00-00') {
         $stats_compare_to = null;
     }
     $calendar_helper->setCompareDateFrom($stats_compare_from);
     $calendar_helper->setCompareDateTo($stats_compare_to);
     $calendar_helper->setCompareOption(Tools::getValue('compare_date_option', $this->context->employee->stats_compare_option));
     $params = array('date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to);
     $this->tpl_view_vars = array('date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to, 'hookDashboardZoneOne' => Hook::exec('dashboardZoneOne', $params), 'hookDashboardZoneTwo' => Hook::exec('dashboardZoneTwo', $params), 'action' => '#', 'warning' => $this->getWarningDomainName(), 'new_version_url' => Tools::getCurrentUrlProtocolPrefix() . 'api.prestashop.com/version/check_version.php?v=' . _PS_VERSION_ . '&lang=' . $this->context->language->iso_code . '&autoupgrade=' . (int) (Module::isInstalled('autoupgrade') && Module::isEnabled('autoupgrade')) . '&hosted_mode=' . (int) defined('_PS_HOST_MODE_'), 'dashboard_use_push' => Configuration::get('PS_DASHBOARD_USE_PUSH'), 'calendar' => $calendar_helper->generate(), 'PS_DASHBOARD_SIMULATION' => Configuration::get('PS_DASHBOARD_SIMULATION'), 'datepickerFrom' => Tools::getValue('datepickerFrom', $this->context->employee->stats_date_from), 'datepickerTo' => Tools::getValue('datepickerTo', $this->context->employee->stats_date_to), 'preselect_date_range' => Tools::getValue('preselectDateRange', $this->context->employee->preselect_date_range));
     return parent::renderView();
 }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:32,代码来源:AdminDashboardController.php

示例7: renderOptions

 public function renderOptions()
 {
     $this->fields_options = array('general' => array('title' => 'General', 'icon' => 'icon-cogs', 'fields' => array(), 'submit' => array('title' => 'Save')));
     return parent::renderOptions();
 }
开发者ID:zangles,项目名称:lennyba,代码行数:5,代码来源:AdminPatternsController.php


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