本文整理汇总了PHP中XML_Parser::XML_Parser方法的典型用法代码示例。如果您正苦于以下问题:PHP XML_Parser::XML_Parser方法的具体用法?PHP XML_Parser::XML_Parser怎么用?PHP XML_Parser::XML_Parser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XML_Parser
的用法示例。
在下文中一共展示了XML_Parser::XML_Parser方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
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);
}
示例2: unset
/**
* 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;
}
示例3:
function Translator_XMLParser(&$translator)
{
parent::XML_Parser('iso-8859-1', 'event', 'iso-8859-1');
$this->translator =& $translator;
}
示例4: ReportParser
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;
}
示例5: BasicXmlParser
/**
* Constructor
* @access public
*/
public function BasicXmlParser()
{
parent::XML_Parser();
}
示例6:
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');
}
示例7: __construct
/**
* 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);
}
}
示例8:
function OA_UpgradePackageParser()
{
parent::XML_Parser('ISO-8859-1');
//$this->__construct();
}
示例9: myParser
function myParser()
{
parent::XML_Parser();
}
示例10:
function XML_Messages_Parser(&$i18n, $srcenc = 'UTF-8', $mode = 'func', $tgtenc = null)
{
parent::XML_Parser($srcenc, $mode, $tgtenc);
$this->_i18n =& $i18n;
}