Exemple #1
0
 /**
  * Loads vocations list.
  * 
  * <p>
  * This method loads vocations from given file. You can create local instances of vocations 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_VocationsList OTS_VocationsList} 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.5
  * @param string $file vocations.xml file location.
  * @throws DOMException On DOM operation error.
  */
 public static function loadVocations($file)
 {
     // loads DOM document
     self::$vocations = new OTS_VocationsList($file);
 }