made a copy
[atutor.git] / include / classes / Language / LanguagesParser.class.php
1 <?php
2 /************************************************************************/
3 /* ATutor                                                                                                                               */
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
6 /* Adaptive Technology Resource Centre / University of Toronto                  */
7 /* http://atutor.ca                                                                                                             */
8 /*                                                                                                                                              */
9 /* This program is free software. You can redistribute it and/or                */
10 /* modify it under the terms of the GNU General Public License                  */
11 /* as published by the Free Software Foundation.                                                */
12 /************************************************************************/
13 // $Id$
14
15 require_once(dirname(__FILE__) . '/LanguageParser.class.php');
16
17 /**
18 * LanguagesParser
19 * Class for parsing XML languages info and returning a Language Objects
20 * @access       public
21 * @author       Joel Kronenberg
22 * @package      Language
23 */
24 class LanguagesParser extends LanguageParser {
25
26         // private
27         function startElement($parser, $name, $attributes) {
28                 if ($name == 'languages') {
29                         // strip off the initial 'languages'
30                         $this->element_path = array();
31                 } else {
32                         parent::startElement($this->parser, $name, $attributes);
33                 }
34    }
35  
36 }
37
38 ?>