_authorization = $authorization; } /** * Retrieve section header css * * @return string */ public function getHeaderCss() { return isset($this->_data['header_css']) ? $this->_data['header_css'] : ''; } /** * Check whether section is allowed for current user * * @return bool */ public function isAllowed() { return isset($this->_data['resource']) ? $this->_authorization->isAllowed($this->_data['resource']) : false; } /** * Check whether element should be displayed * * @return bool */ public function isVisible() { if (!$this->isAllowed()) { return false; } return parent::isVisible(); } }