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


PHP Parser::__construct方法代码示例

本文整理汇总了PHP中Parser::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Parser::__construct方法的具体用法?PHP Parser::__construct怎么用?PHP Parser::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Parser的用法示例。


在下文中一共展示了Parser::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fclose

 /**
  * Constructor
  */
 function __construct($path = '', $distribution = '', $debug = false)
 {
     parent::__construct($path, $distribution);
     $this->_flag_debug = $debug;
     $this->parse();
     fclose($this->handle);
     parent::__destruct();
 }
开发者ID:nemein,项目名称:com_meego_obsconnector,代码行数:11,代码来源:DebianPackagesParser.php

示例2: __construct

 /**
  * Constructor
  *
  * Sets up the Graph class with an image width and height defaults to
  * 640x480
  *
  * @param Integer $width Image width
  * @param Integer $height Image height
  */
 public function __construct($width = 640, $height = 480)
 {
     // default width and height equal to that of a poor monitor (in early 2000s)
     $this->width = $width;
     $this->height = $height;
     //initialize main class variables
     parent::__construct();
 }
开发者ID:Hackmastr,项目名称:apps-base,代码行数:17,代码来源:Graph.php

示例3: __construct

 /**
  * Konstruktor
  * @param string $path
  * @param array $options
  */
 public function __construct($path, $options = [])
 {
     parent::__construct($path, $options);
     $this->delimiter = $this->optionLoadVar($options, 'delimiter', ',');
     $this->enclosure = $this->optionLoadVar($options, 'enclosure', '"');
     $this->is_header = $this->optionLoadVar($options, 'is_header', false);
     $this->escape = $this->optionLoadVar($options, 'escape', '\\');
 }
开发者ID:Talk-Point,项目名称:TPFoundation,代码行数:13,代码来源:CSVParser.php

示例4: __construct

 /**
  * @param Input $input           the input
  * @param bool  $trackLineNumber track line number 1/0
  */
 public function __construct(Input $input, $trackLineNumber = true)
 {
     parent::__construct();
     // set vars
     $this->input = $input;
     $this->trackLineNumber = $trackLineNumber;
     // initial state
     $this->rewind();
 }
开发者ID:kuria,项目名称:parser,代码行数:13,代码来源:InputParser.php

示例5: foreach

 function __construct()
 {
     global $wgParser;
     parent::__construct();
     $wgParser->firstCallInit();
     foreach ($wgParser->getTags() as $h) {
         if (!in_array($h, array('pre'))) {
             $this->setHook($h, array($this, 'fck_genericTagHook'));
         }
     }
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:11,代码来源:FCKeditorParserWrapper.body.php

示例6: __construct

 public function __construct($no_markup = FALSE)
 {
     #
     # Constructor function. Initialize the parser object.
     #
     # Add extra escapable characters before parent constructor
     # initialize the table.
     $this->escape_chars .= ':|';
     # Insert extra document, block, and span transformations.
     # Parent constructor will do the sorting.
     $this->document_gamut += array("doFencedCodeBlocks" => 5, "stripFootnotes" => 15, "stripAbbreviations" => 25, "appendFootnotes" => 50);
     $this->block_gamut += array("doFencedCodeBlocks" => 5, "doTables" => 15, "doDefLists" => 45);
     $this->span_gamut += array("doFootnotes" => 5, "doAbbreviations" => 70);
     parent::__construct($no_markup);
 }
开发者ID:patiernom,项目名称:Markdown,代码行数:15,代码来源:ExtraParser.php

示例7: firstCallInit

 /**
  * Do various kinds of initialisation on the first call of the parser
  */
 function firstCallInit()
 {
     parent::__construct();
     if (!$this->mFirstCall) {
         return;
     }
     $this->mFirstCall = false;
     wfProfileIn(__METHOD__);
     $this->setHook('pre', array($this, 'renderPreTag'));
     CoreParserFunctions::register($this);
     CoreLinkFunctions::register($this);
     $this->initialiseVariables();
     wfRunHooks('ParserFirstCallInit', array(&$this));
     wfProfileOut(__METHOD__);
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:18,代码来源:Parser_LinkHooks.php

示例8: foreach

 function __construct()
 {
     global $wgParser;
     parent::__construct();
     $wgParser->firstCallInit();
     foreach ($wgParser->getTags() as $h) {
         if (in_array($h, array('pre'))) {
             continue;
         }
         if (strtolower($h) == 'webservice' && defined('SMW_DI_VERSION')) {
             $this->setHook($h, array($this, 'replaceWebserviceDefinition'));
             continue;
         }
         $this->setHook($h, array($this, 'fck_genericTagHook'));
     }
 }
开发者ID:AbedSHP,项目名称:WYSIWYG-CKeditor,代码行数:16,代码来源:CKeditorParserWrapper.body.php

示例9: __construct

 /**
  * Constructor
  *
  * @param type param1
  */
 public function __construct($source = NULL, $is_path = FALSE)
 {
     parent::__construct($source, $is_path);
     // Headings
     for ($i = 1; $i <= 10; ++$i) {
         $this->addAction(new HTMLTagParseAction("h{$i}", str_repeat('=', $i)));
     }
     // Formatters
     $this->addAction(new HTMLTagParseAction('strong', "'''"));
     $this->addAction(new HTMLTagParseAction('b', "'''"));
     $this->addAction(new HTMLTagParseAction('em', "''"));
     $this->addAction(new HTMLTagParseAction('i', "''"));
     // Structure
     $this->addAction(new HTMLTagParseAction('p', '', "\n"));
     // Lists, links, etc
     $this->addAction(new ListParseAction('# ', '* '));
     $this->addAction(new LinkParseAction('[$1 $2]'));
 }
开发者ID:aklump,项目名称:loft_parser,代码行数:23,代码来源:MediaWikiParser.php

示例10: __construct

 public function __construct($url)
 {
     parent::__construct($url);
     $urlParameter = parse_url($this->getUrl());
     $this->processWishListUrl($urlParameter);
 }
开发者ID:schmiddim,项目名称:amazon-asin-parser,代码行数:6,代码来源:WishlistParser.php

示例11: __construct

 /**
  * Text constructor.
  * @param $text
  */
 public function __construct($text)
 {
     //TODO: определение переноса строки
     self::$rows = explode("\n", str_replace("\r\n", "\n", $text));
     parent::__construct($text);
 }
开发者ID:apexwire,项目名称:parser-1c,代码行数:10,代码来源:Text.php

示例12: __construct

 /**
  * File constructor.
  * @param $value
  */
 public function __construct($value)
 {
     $this->path = $value;
     parent::__construct($value);
 }
开发者ID:apexwire,项目名称:parser-1c,代码行数:9,代码来源:File.php

示例13:

 function __construct()
 {
     $this->MessageClass = MessageClass::getMessageClasses();
     parent::__construct();
 }
开发者ID:norter,项目名称:Game,代码行数:5,代码来源:message.inc.php

示例14: __construct

 public function __construct($lexer)
 {
     parent::__construct($lexer);
     $this->command_stack = array();
 }
开发者ID:idlesign,项目名称:dja,代码行数:5,代码来源:debug.php

示例15: ilMWFakery

 function __construct()
 {
     parent::__construct();
     $this->mOptions = new ilMWFakery();
     $this->mTitle = new ilMWFakery();
     $this->mOutput = new ilMWFakery();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:7,代码来源:class.ilMWParserAdapter.php


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