本文整理汇总了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();
}
示例2: displayList
public function displayList()
{
parent::displayList();
$this->displayImagePreferences();
$this->displayRegenerate();
$this->displayMoveImages();
}
示例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']));
}
}
示例4: displayList
public function displayList()
{
parent::displayList();
$this->displayRegenerate();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}