root / drupal7 / sites / all / modules / l10n_update / includes / locale / TranslationsStreamWrapper.php @ 503b3f7b
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Definition of TranslationStreamWrapper.
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
* A Drupal interface translations (translations://) stream wrapper class.
|
10 |
*
|
11 |
* Supports storing translation files.
|
12 |
*/
|
13 |
class TranslationsStreamWrapper extends DrupalLocalStreamWrapper { |
14 |
/**
|
15 |
* Implements abstract public function getDirectoryPath()
|
16 |
*/
|
17 |
public function getDirectoryPath() { |
18 |
return variable_get('l10n_update_download_store', L10N_UPDATE_DEFAULT_TRANSLATION_PATH); |
19 |
} |
20 |
|
21 |
/**
|
22 |
* Overrides getExternalUrl().
|
23 |
*/
|
24 |
function getExternalUrl() { |
25 |
throw new Exception('PO files URL should not be public.'); |
26 |
} |
27 |
} |