* @license PHP License * @package WB * @subpackage db */ WBClass::load('WBDatasource_Renderer'); /** * Datasource renderer CSV * * @version 0.1.0 * @package WB * @subpackage db */ class WBDatasource_Renderer_Debug extends WBDatasource_Renderer { /** * start rendering * * Open stream to render view * @param string $ds datasource name */ public function start($ds) { echo "Datasource $ds
\n"; } /** * render single item * * The consumer for data source iteratrion * @param array $item */ public function renderItem($item) { echo '
' . print_r($item, true) . "
\n"; } /** * finish rendering * * Things to do after iterating through datasource */ public function end() { echo "done
\n"; } } ?>