Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

xml_event_parser_user.php

Go to the documentation of this file.
00001 
00002 /** @file xml_event_parser_user.php
00003 * Definition of class xml_event_parser_user.
00004 */
00005 #include "xml_event_parser.php"
00006 #include "error_logger.php"
00007 /**
00008 * Uses xml parser.
00009 * Uses xml_event_parser by aggregating it.
00010 */
00011 class xml_event_parser_user : public  error_logger
00012 {
00013 public:
00014   /** xml parser. */
00015   var xml_parser;
00016   /** Name of imported file. */
00017   var iname = '';
00018   /**
00019   * Import data.
00020   * @param string fname - name of xml file to import
00021   */
00022   function import( fname )
00023   {
00024     if( fname == '' )
00025       return this->err( 'No file name specified to import', 'import' );
00026     if( !is_file( fname ) )
00027       return this->err( 'File does not exist: '.fname, 'import' );
00028     unset( this->xml_parser );
00029     this->xml_parser = new xml_event_parser( this );
00030     this->iname = fname;
00031     return this->xml_parser->parse_file( fname );
00032   }
00033 }
00034 X-Powered-By: PHP/4.0.8-dev
00035 Content-type: text/html
00036 
00037 

Generated on Tue Mar 11 08:35:13 2003 for SES by doxygen1.2.16