/** * Loads spells list. * * <p> * This method loads spells list from given file. You can create local instances of spells lists directly - calling this method will associate loaded list with POT class instance and will make it available everywhere in the code. * </p> * * <p> * Note: Since 0.1.0 version this method loads instance of {@link OTS_SpellsList OTS_SpellsList} which you should fetch to get vocations info instead of calling POT class methods. * </p> * * <p> * Note: Since 0.2.0+SVN this method is static. * </p> * * @version 0.2.0+SVN * @since 0.0.7 * @param string $file Spells file name. * @throws DOMException On DOM operation error. */ public static function loadSpells($file) { self::$spells = new OTS_SpellsList($file); }