/** * Sets object implementing internationalization functions. * Such an object is required to implement IDjaI18n interface. * * @static * @param $obj * @throws DjaException */ public static function setI18n($obj) { if (!$obj instanceof IDjaI18n) { throw new DjaException('Unable to use object not implementing IDjaI18n as internationalization interface.'); } self::$_i18n = $obj; }