/** * check for all extensions that are needed, initialize needed vars and read phpsysinfo.ini */ public function __construct($indexname = "dynamic") { $this->_indexname = $indexname; parent::__construct(); $this->_getTemplateList(); $this->_getLanguageList(); }
public function __construct($willCloseConnection = false, $disableCache = true) { parent::__construct($willCloseConnection, $disableCache); $this->htmlPageTitle = "No title"; $this->htmlHeaders = array(); $this->htmlBodyHeader = ""; $this->htmlBodyContent = ""; $this->htmlBodyFooter = ""; $this->addHttpHeader("Content-Type", "text/html; charset=utf-8"); }
/** * Constructor. * * @param mixed $stream A stream resource * @param integer $verbosity The verbosity level (self::VERBOSITY_QUIET, self::VERBOSITY_NORMAL, self::VERBOSITY_VERBOSE) * @param Boolean $decorated Whether to decorate messages or not (null for auto-guessing) */ public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null) { if (!is_resource($stream) || 'stream' !== get_resource_type($stream)) { throw new \InvalidArgumentException('The StreamOutput class needs a stream as its first argument.'); } $this->stream = $stream; if (null === $decorated) { $decorated = $this->hasColorSupport($decorated); } parent::__construct($verbosity, $decorated); }
/** * Constructor. * * @param mixed $stream A stream resource * @param integer $verbosity The verbosity level (self::VERBOSITY_QUIET, self::VERBOSITY_NORMAL, self::VERBOSITY_VERBOSE) * @param Boolean $decorated Whether to decorate messages or not (null for auto-guessing) * * @throws \InvalidArgumentException When first argument is not a real stream */ public function __construct() { // if (!is_resource($stream) || 'stream' !== get_resource_type($stream)) // { // throw new \InvalidArgumentException('The StreamOutput class needs a stream as its first argument.'); // } // // $this->stream = $stream; // // if (null === $decorated) // { // $decorated = $this->hasColorSupport($decorated); // } // parent::__construct($verbosity, $decorated); parent::__construct(self::VERBOSITY_NORMAL, true); }
/** * set parameters for the generation process * * @param boolean $completeXML switch for complete xml with all plugins * @param string $plugin name of the plugin * * @return void */ public function __construct($completeXML, $plugin = null) { parent::__construct(); if ($completeXML) { $this->_plugins = CommonFunctions::getPlugins(); } if ($plugin !== null) { if (!is_array($plugin)) { $plugin = array($plugin); } foreach ($plugin as $p) { if (in_array(strtolower($p), CommonFunctions::getPlugins())) { $this->_plugins[] = $p; } $this->_pluginRequest = true; } } $this->_prepare(); }
public function __construct($location, $isTemporary = true) { parent::__construct(); $this->setHttpStatusCode($isTemporary ? '302' : '301'); $this->addHttpHeader('Location', $location); }
/** * check for all extensions that are needed, initialize needed vars and read config.php */ public function __construct() { parent::__construct(); $this->_getTemplateList(); $this->_getLanguageList(); }
public function __construct(string $ident, string $format) { parent::__construct($format); $this->ident = $ident; }
/** * set parameters for the XML generation process * * @param boolean $completeXML switch for complete xml with all plugins * @param string $plugin name of the plugin * * @return void */ public function __construct($completeXML, $plugin = null) { parent::__construct(); if ($completeXML) { $this->_completeXML = true; } if ($plugin) { if (in_array($plugin, CommonFunctions::getPlugins())) { $this->_pluginName = $plugin; $this->_pluginRequest = true; } } $this->_prepare(); }
/** * Constructor. */ public function __construct() { parent::__construct(); // カレンダーショートコード add_shortcode('event_calendar', array(&$this, 'event_calendar')); }
public function __construct($willCloseConnection = false, $disableCache = true) { parent::__construct($willCloseConnection, $disableCache); $this->jsonContent = array(); $this->addHttpHeader("Content-Type", "application/json"); }
public function __construct() { parent::__construct(); $this->setStream(fopen('php://stdout', 'w')); }
public function __construct($name = null) { parent::__construct($name); }