当前位置: 首页>>代码示例>>PHP>>正文


PHP XML_Parser::XML_Parser方法代码示例

本文整理汇总了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);
 }
开发者ID:Apeplazas,项目名称:plazadelatecnologia,代码行数:9,代码来源:ParserDictionary.php

示例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;
 }
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:18,代码来源:MAX_TestData_XML_Parser.php

示例3:

 function Translator_XMLParser(&$translator)
 {
     parent::XML_Parser('iso-8859-1', 'event', 'iso-8859-1');
     $this->translator =& $translator;
 }
开发者ID:span20,项目名称:Kallay,代码行数:5,代码来源:Translator_XMLParser.php

示例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;
 }
开发者ID:chiranjeevjain,项目名称:agilebill,代码行数:23,代码来源:class.ReportParser.php

示例5: BasicXmlParser

 /** 
  * Constructor 
  * @access public
  */
 public function BasicXmlParser()
 {
     parent::XML_Parser();
 }
开发者ID:sebastiansanio,项目名称:tallerdeprogramacion2fiuba,代码行数:8,代码来源:BasicXmlParser.php

示例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');
 }
开发者ID:villos,项目名称:tree_admin,代码行数:6,代码来源:ParserBase.php

示例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);
     }
 }
开发者ID:ubertheme,项目名称:module-ubdatamigration,代码行数:17,代码来源:Generator.php

示例8:

 function OA_UpgradePackageParser()
 {
     parent::XML_Parser('ISO-8859-1');
     //$this->__construct();
 }
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:5,代码来源:UpgradePackageParser.php

示例9: myParser

 function myParser()
 {
     parent::XML_Parser();
 }
开发者ID:kractos26,项目名称:orfeo,代码行数:4,代码来源:xml_parser_file.php

示例10:

 function XML_Messages_Parser(&$i18n, $srcenc = 'UTF-8', $mode = 'func', $tgtenc = null)
 {
     parent::XML_Parser($srcenc, $mode, $tgtenc);
     $this->_i18n =& $i18n;
 }
开发者ID:BackupTheBerlios,项目名称:skyapp,代码行数:5,代码来源:XML.php


注:本文中的XML_Parser::XML_Parser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。