lithium\g11n\catalog\adapter\Code::read PHP Method

read() public method

Reads data.
public read ( string $category, string $locale, string $scope ) : array
$category string A category. `'messageTemplate'` is the only category supported.
$locale string A locale identifier.
$scope string The scope for the current operation.
return array Returns the message template. If the scope is not equal to the current scope or `$category` is not `'messageTemplate'` null is returned.
    public function read($category, $locale, $scope)
    {
        if ($scope !== $this->_config['scope']) {
            return null;
        }
        $path = $this->_config['path'];
        switch ($category) {
            case 'messageTemplate':
                return $this->_readMessageTemplate($path);
            default:
                return null;
        }
    }