Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 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");
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 4
0
 /**
  * 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);
 }
Exemplo n.º 5
0
 /**
  * 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();
 }
Exemplo n.º 6
0
 public function __construct($location, $isTemporary = true)
 {
     parent::__construct();
     $this->setHttpStatusCode($isTemporary ? '302' : '301');
     $this->addHttpHeader('Location', $location);
 }
Exemplo n.º 7
0
 /**
  * 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;
 }
Exemplo n.º 9
0
 /**
  * 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();
 }
Exemplo n.º 10
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // カレンダーショートコード
     add_shortcode('event_calendar', array(&$this, 'event_calendar'));
 }
Exemplo n.º 11
0
 public function __construct($willCloseConnection = false, $disableCache = true)
 {
     parent::__construct($willCloseConnection, $disableCache);
     $this->jsonContent = array();
     $this->addHttpHeader("Content-Type", "application/json");
 }
Exemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     $this->setStream(fopen('php://stdout', 'w'));
 }
Exemplo n.º 13
0
 public function __construct($name = null)
 {
     parent::__construct($name);
 }