本文整理汇总了PHP中Output::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Output::__construct方法的具体用法?PHP Output::__construct怎么用?PHP Output::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Output
的用法示例。
在下文中一共展示了Output::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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();
}
示例2: __construct
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");
}
示例3: __construct
/**
* 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);
}
示例4: __construct
/**
* 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);
}
示例5: __construct
/**
* 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();
}
示例6: __construct
public function __construct($location, $isTemporary = true)
{
parent::__construct();
$this->setHttpStatusCode($isTemporary ? '302' : '301');
$this->addHttpHeader('Location', $location);
}
示例7: __construct
/**
* check for all extensions that are needed, initialize needed vars and read config.php
*/
public function __construct()
{
parent::__construct();
$this->_getTemplateList();
$this->_getLanguageList();
}
示例8: __construct
public function __construct(string $ident, string $format)
{
parent::__construct($format);
$this->ident = $ident;
}
示例9: __construct
/**
* 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();
}
示例10: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct();
// カレンダーショートコード
add_shortcode('event_calendar', array(&$this, 'event_calendar'));
}
示例11: __construct
public function __construct($willCloseConnection = false, $disableCache = true)
{
parent::__construct($willCloseConnection, $disableCache);
$this->jsonContent = array();
$this->addHttpHeader("Content-Type", "application/json");
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->setStream(fopen('php://stdout', 'w'));
}
示例13: __construct
public function __construct($name = null)
{
parent::__construct($name);
}