/** * Constructor */ function __construct($path = '', $distribution = '', $debug = false) { parent::__construct($path, $distribution); $this->_flag_debug = $debug; $this->parse(); fclose($this->handle); parent::__destruct(); }
/** * 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(); }
/** * 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', '\\'); }
/** * @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')); } } }
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')); } }
/** * 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); }
/** * Text constructor. * @param $text */ public function __construct($text) { //TODO: определение переноса строки self::$rows = explode("\n", str_replace("\r\n", "\n", $text)); parent::__construct($text); }
/** * File constructor. * @param $value */ public function __construct($value) { $this->path = $value; parent::__construct($value); }
function __construct() { $this->MessageClass = MessageClass::getMessageClasses(); parent::__construct(); }
public function __construct($lexer) { parent::__construct($lexer); $this->command_stack = array(); }
function __construct($string) { parent::__construct($string); $this->packstatebase = str_repeat('.', strlen($string)); $this->packstate = array(); }
function __construct() { parent::__construct(); $this->mOptions = new ilMWFakery(); $this->mTitle = new ilMWFakery(); $this->mOutput = new ilMWFakery(); }
public function __construct($json, $version) { $this->version = $version; parent::__construct($json); }
public function __construct(Tokenizer $source) { parent::__construct($source); }
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); }
public function __construct($mxtDoc, $bolLoadFile = false) { $this->arrConverters = $this->arrConvertersExtensions + $this->arrConverters; parent::__construct($mxtDoc, $bolLoadFile); }
/** * 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(); }
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); }
/** * 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; }
function __construct($char, $name = null, $options = null) { parent::__construct($name, $options); $this->char = $char; }
function __construct($word = null, $name = null, $options = null) { parent::__construct($name, $options); $this->word = $word; }
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']; }