*/ class Mage_Admin_Helper_Block { /** * Types cache * * @var array */ protected $_allowedTypes; /** * Construct */ public function __construct() { $this->_allowedTypes = Mage::getResourceModel('admin/block')->getAllowedTypes(); } /** * @param string $type * @return bool */ public function isTypeAllowed($type) { return isset($this->_allowedTypes[$type]); } }