_defaultScope = $this->_currentScope = $defaultScope; $this->_areaList = $areaList; } /** * Get current configuration scope identifier * * @return string */ public function getCurrentScope() { return $this->_currentScope; } /** * Set current configuration scope * * @param string $scope * @return void */ public function setCurrentScope($scope) { $this->_currentScope = $scope; } /** * Retrieve list of available config scopes * * @return string[] */ public function getAllScopes() { $codes = $this->_areaList->getCodes(); array_unshift($codes, $this->_defaultScope); return $codes; } }