コード例 #1
0
ファイル: Div.php プロジェクト: samurailens/sop
 /**
  * Debug_Renderer_HTML_Div class constructor
  * 
  * @since V2.1.0 - 3 apr 2007
  */
 function __construct($DebugObject, $options)
 {
     $this->DebugObject = $DebugObject;
     $this->defaultOptions = PHP_Debug_Renderer_HTML_DivConfig::singleton()->getConfig();
     $this->setOptions($options);
     if ($this->options['HTML_DIV_disable_credits'] == false) {
         $this->DebugObject->addDebugFirst($this->options['HTML_DIV_credits'], PHP_DebugLine::TYPE_CREDITS);
     }
     // Add execution time
     $this->DebugObject->addProcessPerf();
 }
コード例 #2
0
ファイル: DivConfig.php プロジェクト: Clansuite/Clansuite
 /**
  * returns the static instance of the class
  *
  * @since V2.0.0 - 11 apr 2006
  * @see PHP_Debug
  */
 public static function singleton()
 {
     if (!isset(self::$instance)) {
         $class = __CLASS__;
         self::$instance = new $class();
     }
     return self::$instance;
 }