. */ namespace Volkszaehler\Controller; use Volkszaehler\Model; use Volkszaehler\Util; /** * Data controller * * @author Steffen Vogel * @todo call via redirect from Controller\Channel * @package default */ class DataController extends Controller { /** * Query for data by given channel or group */ public function get(Model\Entity $entity) { $from = $this->view->request->getParameter('from'); $to = $this->view->request->getParameter('to'); $groupBy = $this->view->request->getParameter('groupBy'); return $entity->getInterpreter($this->em, $from, $to)->getValues($groupBy); } /** * Log new readings with logger interfaces */ public function add() { } } ?>