<?php

/**
 * Core
 *
 * @author Arkadiusz Rychlik <a.rychlik at eppe.com.pl>
 */
class Rtn_SimpleTable_Renderer_Core {

	/**
	 * @var Rtn_SimpleTable
	 */
	public $simpleTable;
	
	public $output = '';
	
	public function __construct(Rtn_SimpleTable &$simpleTable) {
		$this->simpleTable = $simpleTable;
	}
	
	public function render() {
		foreach($this->simpleTable->blocks as $name => $block){
			$this->output .= $block->renderer->render();
		}
		
		return $this->getOutput();
	}
	
	public function getOutput(){
		return $this->output;
	}
		
}
