Extends
lithium\g11n\catalog\Adapter
Reads data.
Parameters
- string $category A category. `'messageTemplate'` is the only category supported.
- string $locale A locale identifier.
- string $scope The scope for the current operation.
Returns
array Returns the message template. If the scope is not equal to the current scope or `$category` is not `'messageTemplate'` null is returned.Source
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;
}
}