| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- Lib::loadClass('RouteBase');
- Lib::loadClass('UI');
- Lib::loadClass('DBG');
- Lib::loadClass('Router');
- class Route_UrlAction_Ant extends RouteBase {// @doc @see Route_Ant
- public function defaultAction() {
- UI::gora();
- UI::tag('h1', [], 'Ant');
- try {
- $taskList = Router::getRoute('Ant')->getAntUrlActionList();
- DBG::nicePrint($taskList, 'ant-url_action');
- $featureID = V::get('featureID', '', $_GET);
- $namespace = V::get('namespace', '', $_GET);
- UI::startTag('ul');
- foreach ($taskList as $path => $label) {
- $link = "index.php?_route=UrlAction_Ant&_task=ant&path={$ditaPath}";
- echo UI::h('li', [], [
- UI::h('a', ['href'=>$link], "Uruchom '{$label}'")
- ]);
- }
- UI::endTag('ul');
- } catch (Exception $e) {
- UI::alert('danger', $e->getMessage());
- DBG::log($e);
- }
- UI::dol();
- }
- public function antAction() {
- UI::gora();
- try {
- } catch (Exception $e) {
- UI::alert('danger', $e->getMessage());
- DBG::log($e);
- }
- UI::dol();
- }
- }
|