/** * Returns an HTML version of an array as YAML. * * @param array The values array * * @return string An HTML string */ protected function formatArrayAsHtml($values) { return '<pre>' . @sfYaml::Dump($values) . '</pre>'; }
/** * Converts an array to HTML. * * @param string The identifier to use * @param array The array of values * * @return string An HTML string */ protected function formatArrayAsHtml($id, $values) { $id = ucfirst(strtolower($id)); $content = ' <h2>' . $id . ' <a href="#" onclick="sfWebDebugToggle(\'sfWebDebug' . $id . '\'); return false;">' . image_tag(sfConfig::get('sf_web_debug_web_dir') . '/images/toggle.gif') . '</a></h2> <div id="sfWebDebug' . $id . '" style="display: none"><pre>' . htmlentities(@sfYaml::Dump($values), ENT_QUOTES, sfConfig::get('sf_charset')) . '</pre></div> '; return $content; }
/** * Returns an HTML version of an array as YAML. * * @param array $values The values array * * @return string An HTML string */ protected static function formatArrayAsHtml($values) { return '<pre>' . htmlspecialchars(@sfYaml::Dump($values), ENT_QUOTES, sfConfig::get('sf_charset', 'UTF-8')) . '</pre>'; }