/** * Sets the current clang id. * * @param int $id Clang id * * @throws rex_exception */ public static function setCurrentId($id) { if (!self::exists($id)) { throw new rex_exception('Clang id "' . $id . '" doesn\'t exist'); } self::$currentId = $id; }