Exemple #1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && ($this->isDisplayWithEmptyList() || $this->hasResults());
 }
Exemple #2
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && ($this->isDisplayWithEmptyList() || ($this->isCacheAvailable() && $this->hasCachedContent() || $this->hasResults()));
 }