Пример #1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !\XLite\Upgrade\Cell::getInstance()->isUnpacked() && !\XLite\Upgrade\Cell::getInstance()->isUpgraded();
 }
Пример #2
0
 /**
  * Completed steps for upgrade is visible:
  * if there is at least one upgrade entry (core or module) (\XLite\View\Upgrade\EmptyCells widget is displayed instead)
  * and if the upgrade process is finished
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Upgrade\Cell::getInstance()->getEntries() && \XLite\Upgrade\Cell::getInstance()->isUpgraded();
 }