added set_default_lang()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43656 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-10-21 00:49:13 +00:00
parent ac8950e696
commit c5ec4314b4

View File

@ -104,6 +104,15 @@ class Translatable extends DataObjectDecorator {
return self::$default_lang;
}
/**
* Set default language.
*
* @paran $lang String
*/
static function set_default_lang($lang) {
self::$default_lang = $lang;
}
/**
* Check whether the default and current reading language are the same.
* @return boolean Return true if both default and reading language are the same.