options = $options; } function exec($Doc) { list($alias, $action, $value) = explode('/', $this->options['_restAlias']); //vdie($alias, $action, $value, $this->options); $announcement = SiteMap::getObj('Announcement/Announcement.php'); $id_announcement = $announcement->getIdByAlias($alias); $DBObj = SiteMap::getObj('Announcement/Reply/Reply.php', $id_announcement); $Show = SiteMap::getObj('Announcement/Reply/Show/Show.php', $Doc, $DBObj); switch ($action) { case 'page': $Show->pageNum = (int) $value; break; } if ($DBObj->getIdAnnouncement()) { $Show->exec(); } } }