Esempio n. 1
0
 /**
  * Check if the given block exist. If not then an error is logged.
  * Otherwise it hides the block even if it is not "empty".
  *
  * Is somewhat an opposite to touchBlock().
  *
  * @param    string      block name
  * @return   integer     SIGMA_OK on success, SIGMA_BLOCK_NOT_FOUND on failure
  */
 function hideBlock($block)
 {
     if (!$this->blockExists($block)) {
         \DBG::log('The SIGMA-Block ' . $block . ' does not exist');
         return SIGMA_BLOCK_NOT_FOUND;
     }
     return parent::hideBlock($block);
 }