コード例 #1
0
ファイル: RDS_Network.php プロジェクト: hexing-w/Yaf-CMS
 /**
  * Network debug interface.
  *
  * @param[in] name string Debug session name.
  * @param[in] debug_host string Debug interface host.
  * @param[in] debug_port int Debug interface port.
  * @param[in] attach_to_error_handler boolean If the debug system should
  *     overwrite the php's default error_handler.
  * @param[in] buffered boolean Enable/disable buffered output.
  * @param[in] charset string Connection charset.
  */
 public function __construct($name, $debug_host, $debug_port = 6660, $attach_to_error_handler = true, $buffered = true, $charset = 'iso-8859-1')
 {
     parent::__construct($attach_to_error_handler, $buffered);
     $this->name = $name;
     $this->host = $debug_host;
     $this->port = $debug_port;
     $this->charset = $charset;
     if (!$buffered) {
         // open socket on startup, else the socket will be opened only
         // on __destruct for flush
         $this->openSocket();
     }
 }
コード例 #2
0
ファイル: RDS_Html.php プロジェクト: hexing-w/Yaf-CMS
 /**
  * HTML debug interface.
  *
  * This interface is always buffered.
  *
  * @param[in] name string Debug session name.
  * @param[in] attach_to_error_handler boolean If the debug system should
  *     overwrite the php's default error_handler.
  */
 public function __construct($name, $attach_to_error_handler = true)
 {
     parent::__construct($attach_to_error_handler, true);
     $this->name = $name;
 }
コード例 #3
0
ファイル: RDS_Console.php プロジェクト: hexing-w/Yaf-CMS
 /**
  * Text console debug interface.
  *
  * @param[in] name string Debug session name.
  * @param[in] attach_to_error_handler boolean If the debug system should
  *     overwrite the php's default error_handler.
  * @param[in] buffered boolean Enable/disable buffered output.
  * @param[in] colors boolean Enable/disable colored output.
  */
 public function __construct($name, $attach_to_error_handler = true, $buffered = true, $colors = true)
 {
     parent::__construct($attach_to_error_handler, $buffered);
     $this->name = $name;
     $this->colors = $colors;
 }