_data[$scope][$category][$locale])) { return $this->_data[$scope][$category][$locale]; } } /** * Writes data. * * @param string $category A category. * @param string $locale A locale identifier. * @param string $scope The scope for the current operation. * @param array $data The data to write. * @return boolean */ public function write($category, $locale, $scope, array $data) { $scope = $scope ?: 'default'; if (!isset($this->_data[$scope][$category][$locale])) { $this->_data[$scope][$category][$locale] = []; } foreach ($data as $item) { $this->_data[$scope][$category][$locale] = $this->_merge( $this->_data[$scope][$category][$locale], $this->_prepareForWrite($item) ); } return true; } } ?>