public function render() { if (empty($this->dotaz)) { throw new \Flame\Ares\AresException('Vyplň alespoň jeden IČ.'); } foreach ($this->dotaz as $key => $val) { $this->xml->add('<Dotaz><Pomocne_ID>' . $key . '</Pomocne_ID><ICO>' . $val . '</ICO></Dotaz>'); } $this->xml->__set('dotaz_pocet', $this->count); return $this->xml->render(); }