/** * Debug default output function, simply uses the static dump fonction * of this class * * @since V2.0.0 - 11 apr 2006 * @see dump */ public function __toString() { return '<pre>' . PHP_Debug::dumpVar($this, __CLASS__ . ' class instance', false, PHP_Debug::DUMP_STR) . '</pre>'; }
/** * Debug_Line default output function * * @since V2.0.0 - 11 apr 2006 * @see PHP_Debug::dumpVar() */ public function __toString() { return '<pre>' . PHP_Debug::dumpVar($this, __CLASS__, false, PHP_DEBUG_DUMP_ARR_STR) . '</pre>'; }
/** * Show a super array * * @param string $SuperArrayType Type of super en array to add * @since V2.0.0 - 07 Apr 2006 */ protected function showSuperArray($SuperArrayType) { // Lang $txtVariable = 'Var'; $txtNoVariable = 'NO VARIABLE'; $NoVariable = ' -- ' . $txtNoVariable . ' -- '; $SuperArray = null; $buffer = ''; $ArrayTitle = PHP_Debug::$globalEnvConstantsCorresp[$SuperArrayType]; $SuperArray = $GLOBALS[$ArrayTitle]; $Title = $ArrayTitle . ' ' . $txtVariable; $SectionBasetitle = '<b>$Title (' . count($SuperArray) . ') :'; if (count($SuperArray)) { $buffer .= $SectionBasetitle . '</b>'; $buffer .= '<pre>' . PHP_Debug::dumpVar($SuperArray, $ArrayTitle, false, PHP_Debug::DUMP_STR) . '</pre>'; } else { $buffer .= $SectionBasetitle . "{$NoVariable}</b>"; } return $buffer; }
/** * HTML_Table_Config * * @since V2.0.0 - 26 Apr 2006 */ public function __toString() { return '<pre>' . PHP_Debug::dumpVar($this->singleton()->getConfig(), __CLASS__, false, PHP_DEBUG_DUMP_ARR_STR) . '</pre>'; }
/** * Displays an array. * * @param string $SuperArrayType Type of super en array to add * @since V2.0.0 - 07 Apr 2006 */ protected function showArray($array, $name) { // Lang $txtNoVariable = 'NO VARIABLE'; $NoVariable = ' -- ' . $txtNoVariable . ' -- '; $buffer = ''; $SectionBasetitle = '<b>' . $name . '(' . count($array) . ') :'; if (count($array)) { $buffer .= $SectionBasetitle . '</b>'; $buffer .= '<pre>' . PHP_Debug::dumpVar($array, $name, false, PHP_Debug::DUMP_STR) . '</pre>'; } else { $buffer .= $SectionBasetitle . $NoVariable . '</b>'; } return $buffer; }