37 lines
628 B
PHP
37 lines
628 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace External\ZNZBundle\Admin\Tabs;
|
|
|
|
use External\ZNZBundle\Util\ZNZUtil;
|
|
use KupShop\AdminBundle\Admin\WindowTab;
|
|
|
|
class ZNZStoresTab extends WindowTab
|
|
{
|
|
protected $title = 'flapStoresZNZ';
|
|
protected $template = 'window/stores.znz.tpl';
|
|
|
|
public static function getTypes()
|
|
{
|
|
return [
|
|
'stores' => 0,
|
|
];
|
|
}
|
|
|
|
public function isVisible()
|
|
{
|
|
return isSuperuser();
|
|
}
|
|
|
|
public function getLabel()
|
|
{
|
|
return 'ZNZ';
|
|
}
|
|
|
|
public function handleUpdate()
|
|
{
|
|
clearCache(ZNZUtil::STORES_CACHE_KEY);
|
|
}
|
|
}
|