*/ class Mage_Admin_Helper_Variable { /** * Paths cache * * @var array */ protected $_allowedPaths; /** * Construct */ public function __construct() { $this->_allowedPaths = Mage::getResourceModel('admin/variable')->getAllowedPaths(); } /** * @param string $path * @return bool */ public function isPathAllowed($path) { return isset($this->_allowedPaths[$path]); } }