This is needed for PHP4 compatibility, it will
call the constructor, when a new instance is created.
public XML_Parser ( string $srcenc = null, string $mode = 'event', string $tgtenc = null ) | ||
$srcenc | string | source charset encoding, use NULL (default) to use whatever the document specifies |
$mode | string | how this parser object should work, "event" for startelement/endelement-type events, "func" to have it call functions named after elements |
$tgtenc | string | a valid target encoding |
function __construct($variables, $fail_on_invalid_names = true, $structure = false, $valid_types = array(), $force_defaults = true) { // force ISO-8859-1 due to different defaults for PHP4 and PHP5 // todo: this probably needs to be investigated some more andcleaned up parent::XML_Parser('ISO-8859-1'); $this->variables = $variables; $this->structure = $structure; $this->val =& new MDB2_Schema_Validate($fail_on_invalid_names, $valid_types, $force_defaults); }
/** * Constructor. * * @param string $outputMode */ function MAX_TestData_XML_Parser($outputMode = 'text') { $conf = $GLOBALS['_MAX']['CONF']; parent::XML_Parser(); // The configuration file holds all the defined table names. // HACK: The parser currently gets very confused when it encounters 'category' fields // if there is a table defined with that name. $configured_tables = $conf['table']; unset($configured_tables['category']); $this->aTables = array_keys($configured_tables); $this->aDataset = array(); $this->outputMode = $outputMode; }
function Translator_XMLParser(&$translator) { parent::XML_Parser('iso-8859-1', 'event', 'iso-8859-1'); $this->translator =& $translator; }
function ReportParser(&$reportClass) { static $uc; static $ucd; static $ucf; $this->user_criteria =& $uc; $this->user_criteria_data =& $ucd; $this->user_criteria_fields =& $ucf; # Create the user criteria fields as static members if (!is_a($reportClass, 'Reporting')) { die('Parameter 1 must be a Reporting reference.'); } # Save the Reporting reference $this->reportClass =& $reportClass; # Clear the cdata buffer $this->cdata = ""; # Init the stack $this->stack = array(); # Call into XML_Parser, to set us up the bomb. (See references on ALL YOUR BASE R BELONG TO US - Seriously, it's funny shit.) parent::XML_Parser(); # Do NOT perform case foldering! $this->folding = false; }
/** * Constructor * @access public */ public function BasicXmlParser() { parent::XML_Parser(); }
function __construct() { // force ISO-8859-1 due to different defaults for PHP4 and PHP5 // todo: this probably needs to be investigated some more andcleaned up parent::XML_Parser('ISO-8859-1'); }
/** * Constructor * * @param string $syntaxFile Name of XML file * with syntax highlighting rules * * @access public */ function __construct($syntaxFile = '') { XML_Parser::XML_Parser(null, 'func'); $this->_errors = array(); $this->_declareErrorMessages(); if ($syntaxFile) { $this->setInputFile($syntaxFile); } }
function OA_UpgradePackageParser() { parent::XML_Parser('ISO-8859-1'); //$this->__construct(); }
function myParser() { parent::XML_Parser(); }
function XML_Messages_Parser(&$i18n, $srcenc = 'UTF-8', $mode = 'func', $tgtenc = null) { parent::XML_Parser($srcenc, $mode, $tgtenc); $this->_i18n =& $i18n; }