/**
  * Constructor
  */
 function __construct($path = '', $distribution = '', $debug = false)
 {
     parent::__construct($path, $distribution);
     $this->_flag_debug = $debug;
     $this->parse();
     fclose($this->handle);
     parent::__destruct();
 }
Esempio n. 2
0
 /**
  * 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();
 }
Esempio n. 3
0
 /**
  * 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', '\\');
 }
Esempio n. 4
0
 /**
  * @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();
 }
 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'));
         }
     }
 }
Esempio n. 6
0
 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);
 }
 /**
  * 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__);
 }
 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'));
     }
 }
Esempio n. 9
0
 /**
  * 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]'));
 }
 public function __construct($url)
 {
     parent::__construct($url);
     $urlParameter = parse_url($this->getUrl());
     $this->processWishListUrl($urlParameter);
 }
Esempio n. 11
0
 /**
  * Text constructor.
  * @param $text
  */
 public function __construct($text)
 {
     //TODO: определение переноса строки
     self::$rows = explode("\n", str_replace("\r\n", "\n", $text));
     parent::__construct($text);
 }
Esempio n. 12
0
 /**
  * File constructor.
  * @param $value
  */
 public function __construct($value)
 {
     $this->path = $value;
     parent::__construct($value);
 }
Esempio n. 13
0
 function __construct()
 {
     $this->MessageClass = MessageClass::getMessageClasses();
     parent::__construct();
 }
Esempio n. 14
0
 public function __construct($lexer)
 {
     parent::__construct($lexer);
     $this->command_stack = array();
 }
Esempio n. 15
0
 function __construct($string)
 {
     parent::__construct($string);
     $this->packstatebase = str_repeat('.', strlen($string));
     $this->packstate = array();
 }
Esempio n. 16
0
 function __construct()
 {
     parent::__construct();
     $this->mOptions = new ilMWFakery();
     $this->mTitle = new ilMWFakery();
     $this->mOutput = new ilMWFakery();
 }
Esempio n. 17
0
 public function __construct($json, $version)
 {
     $this->version = $version;
     parent::__construct($json);
 }
 public function __construct(Tokenizer $source)
 {
     parent::__construct($source);
 }
Esempio n. 19
0
 public function __construct($db, $numExped)
 {
     $sql = "SELECT NumExp,TipoExp,Iniciador,Extracto,UbicacionFisica,expedientes.Partido AS NumPart,partidos.Partido AS Partido,NomCatastral,Partida,ExpPrincipal,Obra,Oficina,Fecha_actualizacion,Observaciones,partidos.Partido FROM expedientes,partidos WHERE expedientes.Partido=partidos.NumPartido";
     $fieldList = '[["NumExp","txt"],["TipoExp","txt"],["Iniciador","txt"],["Extracto","txt"],["UbicacionFisica","txt"],["NumPart","num"],["Partido","txt"],["NomCatastral","txt"],["Partida","txt"],["ExpPrincipal","txt"],["Obra","txt"],["Oficina","num"]]';
     parent::__construct($db, $numExped, $sql, $fieldList);
 }
Esempio n. 20
0
 public function __construct($mxtDoc, $bolLoadFile = false)
 {
     $this->arrConverters = $this->arrConvertersExtensions + $this->arrConverters;
     parent::__construct($mxtDoc, $bolLoadFile);
 }
Esempio n. 21
0
File: Engine.php Progetto: g4z/poop
 /**
  * Construct the Engine object
  * @var array Array of name/value options
  */
 public function __construct(array $options = NULL)
 {
     parent::__construct();
     $this->options = new Options($options);
     $this->startup();
 }
Esempio n. 22
0
 public function __construct($db, $numExped)
 {
     $sql = "SELECT NumExp,TipoExp,Iniciador,Extracto,UbicacionFisica,expedientes.Partido AS NumPart,partidos.Partido AS Partido,NomCatastral,Partida,ExpPrincipal,Obra,Oficina,Fecha_actualizacion,Observaciones,partidos.Partido FROM expedientes,partidos WHERE expedientes.Partido=partidos.NumPartido";
     parent::__construct($db, $numExped, $sql);
 }
Esempio n. 23
0
 /**
  * Compiles some passed template source code into the php code that will execute as per the template source.
  * 
  * @throws SSTemplateParseException
  * @param  $string The source of the template
  * @param string $templateName The name of the template, normally the filename the template source was loaded from
  * @param bool $includeDebuggingComments True is debugging comments should be included in the output
  * @param bool $topTemplate True if this is a top template, false if it's just a template
  * @return mixed|string The php that, when executed (via include or exec) will behave as per the template source
  */
 public function compileString($string, $templateName = "", $includeDebuggingComments = false, $topTemplate = true)
 {
     if (!trim($string)) {
         $code = '';
     } else {
         parent::__construct($string);
         $this->includeDebuggingComments = $includeDebuggingComments;
         // Ignore UTF8 BOM at begining of string. TODO: Confirm this is needed, make sure SSViewer handles UTF
         // (and other encodings) properly
         if (substr($string, 0, 3) == pack("CCC", 0xef, 0xbb, 0xbf)) {
             $this->pos = 3;
         }
         // Match the source against the parser
         if ($topTemplate) {
             $result = $this->match_TopTemplate();
         } else {
             $result = $this->match_Template();
         }
         if (!$result) {
             throw new SSTemplateParseException('Unexpected problem parsing template', $this);
         }
         // Get the result
         $code = $result['php'];
     }
     // Include top level debugging comments if desired
     if ($includeDebuggingComments && $templateName && stripos($code, "<?xml") === false) {
         $code = $this->includeDebuggingComments($code, $templateName);
     }
     return $code;
 }
Esempio n. 24
0
 function __construct($char, $name = null, $options = null)
 {
     parent::__construct($name, $options);
     $this->char = $char;
 }
Esempio n. 25
0
 function __construct($word = null, $name = null, $options = null)
 {
     parent::__construct($name, $options);
     $this->word = $word;
 }
Esempio n. 26
0
 public function __construct()
 {
     parent::__construct();
     $this->_headers = ['User-Agent: ' . $_SERVER['HTTP_USER_AGENT'], 'Accept: ' . $_SERVER['HTTP_ACCEPT'], 'Accept-Language: ru-RU,ru;q=0.9,en;q=0.8', 'Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1', 'Accept-Encoding: deflate', 'Cache-Control: no-cache', 'Connection: Keep-Alive'];
 }