/** * Constructor * @param int $padPositionX x position of the pad in the main screen * @param int $padPositionY y position of the pad in the main screen */ public function __construct($padPositionX, $padPositionY) { parent::__construct($padPositionX, $padPositionY); $this->varList = array('$_SERVER' => $_SERVER, '$_ENV' => $_ENV); foreach ($this->varList as $name => $var) { $this->varPosList[] = $name; } }
/** * Constructor * @param int $padPositionX x position of the pad in the main screen * @param int $padPositionY y position of the pad in the main screen * @param float $startMicrotime start time of the process * @param \Bugzorcist\Profiler\Profiler\ProfilerManager $profilerManager profiler manager */ public function __construct($padPositionX, $padPositionY, $startMicrotime, ProfilerManager $profilerManager = null) { parent::__construct($padPositionX, $padPositionY); $this->profilerManager = $profilerManager; $this->startMicrotime = $startMicrotime; if (null === $profilerManager) { return; } foreach ($profilerManager as $idProfiler => $profiler) { $this->addExpandableElement($idProfiler); } }