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


PHP Output::__construct方法代码示例

本文整理汇总了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();
 }
开发者ID:jwdeitch,项目名称:phpsysinfo,代码行数:10,代码来源:class.Webpage.inc.php

示例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");
 }
开发者ID:adntec,项目名称:queueManage,代码行数:10,代码来源:WebPageOutput.php

示例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);
 }
开发者ID:skoop,项目名称:symfony-sandbox,代码行数:18,代码来源:StreamOutput.php

示例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);
 }
开发者ID:KernelMadness,项目名称:ContainerKit,代码行数:25,代码来源:StreamOutput.php

示例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();
 }
开发者ID:KingNoosh,项目名称:Teknik,代码行数:27,代码来源:class.JSONOutput.inc.php

示例6: __construct

 public function __construct($location, $isTemporary = true)
 {
     parent::__construct();
     $this->setHttpStatusCode($isTemporary ? '302' : '301');
     $this->addHttpHeader('Location', $location);
 }
开发者ID:adntec,项目名称:queueManage,代码行数:6,代码来源:RedirectOutput.php

示例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();
 }
开发者ID:sorrowchen,项目名称:openfiler-cn,代码行数:9,代码来源:class.Webpage.inc.php

示例8: __construct

 public function __construct(string $ident, string $format)
 {
     parent::__construct($format);
     $this->ident = $ident;
 }
开发者ID:coenbijlsma,项目名称:dashboard-backend,代码行数:5,代码来源:SyslogOutput.php

示例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();
 }
开发者ID:jhbsz,项目名称:ossimTest,代码行数:22,代码来源:class.WebpageXML.inc.php

示例10: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // カレンダーショートコード
     add_shortcode('event_calendar', array(&$this, 'event_calendar'));
 }
开发者ID:rnsk,项目名称:wp-event-schedule,代码行数:9,代码来源:wpes-shortcode.class.php

示例11: __construct

 public function __construct($willCloseConnection = false, $disableCache = true)
 {
     parent::__construct($willCloseConnection, $disableCache);
     $this->jsonContent = array();
     $this->addHttpHeader("Content-Type", "application/json");
 }
开发者ID:adntec,项目名称:queueManage,代码行数:6,代码来源:JsonOutput.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setStream(fopen('php://stdout', 'w'));
 }
开发者ID:dez-php,项目名称:dez-cli,代码行数:5,代码来源:OutputStream.php

示例13: __construct

 public function __construct($name = null)
 {
     parent::__construct($name);
 }
开发者ID:jmt33,项目名称:pwiki,代码行数:4,代码来源:AbstractOption.php


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