public function write($category, $locale, $scope, array $data)
{
$files = $this->_files($category, $locale, $scope);
foreach ($files as $file) {
$method = '_compile' . ucfirst(pathinfo($file, PATHINFO_EXTENSION));
if (!($stream = fopen($file, 'wb'))) {
return false;
}
$this->invokeMethod($method, array($stream, $data));
fclose($stream);
}
return true;
}