/**
  * Hides the button when there are no active items
  * 
  * @see	\wcf\system\menu\page\PageMenuItemProvider::isVisible()
  */
 public function isVisible()
 {
     $items = \wcf\data\jcoins\shop\item\JCoinsShopItemCache::getInstance()->getActiveItems();
     if (!count($items)) {
         return false;
     }
     return true;
 }
Ejemplo n.º 2
0
 /**
  * @see	\wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->items = JCoinsShopItemCache::getInstance()->getActiveItems();
 }