li3_cldr\extensions\adapter\g11n\catalog\Cldr::read()

public method

Reads data.

Parameters

  • string $category

    A category. The following categories are supported:

    • 'currency'
    • 'language'
    • 'script'
    • 'territory'
    • 'validation'
  • string $locale

    A locale identifier.

  • string $scope

    The scope for the current operation.

Returns

array|void

Source

	public function read($category, $locale, $scope) {
		if ($scope != $this->_config['scope']) {
			return null;
		}
		$path = $this->_config['path'];

		switch ($category) {
			case 'currency':
				return $this->_readCurrency($path, $locale);
			case 'language':
			case 'script':
				return $this->_readList($path, $category, $locale);
			case 'territory':
				return $this->_readTerritory($path, $locale);
			case 'validation':
				return $this->_readValidation($path, $locale);
		}
	}