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


PHP AdminTab::displayList方法代码示例

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


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

示例1: displayList

 public function displayList()
 {
     global $cookie, $currentIndex;
     $warnings = array();
     if (!file_exists(_PS_ROOT_DIR_ . '/.htaccess')) {
         $warnings[] = $this->l('In order to enable the PrestaShop Webservice, please generate the .htaccess file via the "Generators" tab (in the "Tools" tab).');
     }
     if (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') === false) {
         $warnings[] = $this->l('To avoid operating problems, please use an Apache server.');
     }
     if (function_exists('apache_get_modules')) {
         $apache_modules = apache_get_modules();
         if (!in_array('mod_auth_basic', $apache_modules)) {
             $warnings[] = $this->l('Please activate the Apache module \'mod_auth_basic\' to allow authentication of PrestaShop webservice.');
         }
         if (!in_array('mod_rewrite', $apache_modules)) {
             $warnings[] = $this->l('Please activate the Apache module \'mod_rewrite\' to allow using the PrestaShop webservice.');
         }
     } else {
         $warnings[] = $this->l('We could not check if basic authentication and rewrite extensions are activated. Please manually check if they are activated in order to use the PrestaShop webservice.');
     }
     if (!extension_loaded('SimpleXML')) {
         $warnings[] = $this->l('Please activate the PHP extension \'SimpleXML\' to allow testing of PrestaShop webservice.');
     }
     if (!_PS_SSL_ENABLED_) {
         $warnings[] = $this->l('If possible, it is preferable to use SSL (https) for webservice calls, as it avoids the security issues of type "man in the middle".');
     }
     $this->displayWarning($warnings);
     foreach ($this->_list as $k => $item) {
         if ($item['is_module'] && $item['class_name'] && $item['module_name'] && ($instance = Module::getInstanceByName($item['module_name'])) && !$instance->useNormalPermissionBehaviour()) {
             unset($this->_list[$k]);
         }
     }
     parent::displayList();
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:35,代码来源:AdminWebservice.php

示例2: displayList

 public function displayList()
 {
     parent::displayList();
     $this->displayImagePreferences();
     $this->displayRegenerate();
     $this->displayMoveImages();
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:7,代码来源:AdminImages.php

示例3: displayList

    public function displayList()
    {
        global $cookie, $currentIndex;
        parent::displayList();
        $tabs = Tab::getTabs(intval($cookie->id_lang), 0);
        echo '<br /><h2>' . $this->l('Positions') . '</h2>
		<h3>' . $this->l('Level') . ' 1</h3>';
        $this->_posTabs($this->l('Main'), $tabs);
        echo '<h3>' . $this->l('Level') . ' 2</h3>';
        foreach ($tabs as $t) {
            $this->_posTabs(stripslashes($t['name']), Tab::getTabs(intval($cookie->id_lang), $t['id_tab']));
        }
    }
开发者ID:vincent,项目名称:theinvertebrates,代码行数:13,代码来源:AdminTabs.php

示例4: displayList

 public function displayList()
 {
     parent::displayList();
     $this->displayRegenerate();
 }
开发者ID:sealence,项目名称:local,代码行数:5,代码来源:AdminImages.php

示例5: displayList

 public function displayList()
 {
     $this->displayWarning($this->l('Cookies are different on each subdomain of your Website. If you want to use the same cookie, please add here the subdomains used by your shop. The most common is "www".'));
     return parent::displayList();
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:5,代码来源:AdminSubDomains.php

示例6: displayList

 public function displayList()
 {
     global $currentIndex;
     // Test if the backup dir is writable
     if (!is_writable(PS_ADMIN_DIR . '/backups/')) {
         $this->displayWarning($this->l('dir backups on admin dir must be writable (CHMOD 777)'));
     }
     $this->displayErrors();
     echo '<br /><a href="' . $currentIndex . '&add' . $this->table . '&token=' . $this->token . '"><img src="../img/admin/add.gif" border="0" /> ' . $this->l('Create new back-up') . '</a><br /><br />';
     parent::displayList();
 }
开发者ID:vincent,项目名称:theinvertebrates,代码行数:11,代码来源:AdminBackup.php

示例7: displayList

 public function displayList()
 {
     global $currentIndex;
     $this->displayWarning($this->l('When you delete a language, all related translations in the database will be deleted.'));
     parent::displayList();
     $languages = Language::getLanguages(false);
 }
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:7,代码来源:AdminLanguages.php

示例8: displayList

 public function displayList()
 {
     echo '<fieldset>' . $this->l('Cookies are different on each subdomain of your Website. If you want to use the same cookie, please add here the subdomains used by your shop. The most common is "www".') . '</fieldset>';
     return parent::displayList();
 }
开发者ID:Bruno-2M,项目名称:prestashop,代码行数:5,代码来源:AdminSubDomains.php

示例9: displayList

 public function displayList()
 {
     global $currentIndex;
     // Test if the backup dir is writable
     if (!is_writable(PS_ADMIN_DIR . '/backups/')) {
         $this->displayWarning($this->l('"Backups" Directory in admin directory must be writeable (CHMOD 755 / 777)'));
     }
     $this->displayErrors();
     $this->displayHowTo();
     parent::displayList();
 }
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:11,代码来源:AdminBackup.php

示例10: displayList

 public function displayList()
 {
     global $currentIndex;
     $this->displayErrors();
     echo '<br /><a href="' . $currentIndex . '&add' . $this->table . '&token=' . $this->token . '"><img src="../img/admin/add.gif" border="0" /> ' . $this->l('Create new back-up') . '</a><br /><br />';
     parent::displayList();
 }
开发者ID:sealence,项目名称:local,代码行数:7,代码来源:AdminBackup.php


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