Ant.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. Lib::loadClass('RouteBase');
  3. Lib::loadClass('UI');
  4. Lib::loadClass('DBG');
  5. Lib::loadClass('Router');
  6. class Route_UrlAction_Ant extends RouteBase {// @doc @see Route_Ant
  7. public function defaultAction() {
  8. UI::gora();
  9. UI::tag('h1', [], 'Ant');
  10. try {
  11. $taskList = Router::getRoute('Ant')->getAntUrlActionList();
  12. DBG::nicePrint($taskList, 'ant-url_action');
  13. $featureID = V::get('featureID', '', $_GET);
  14. $namespace = V::get('namespace', '', $_GET);
  15. UI::startTag('ul');
  16. foreach ($taskList as $path => $label) {
  17. $link = "index.php?_route=UrlAction_Ant&_task=ant&path={$ditaPath}";
  18. echo UI::h('li', [], [
  19. UI::h('a', ['href'=>$link], "Uruchom '{$label}'")
  20. ]);
  21. }
  22. UI::endTag('ul');
  23. } catch (Exception $e) {
  24. UI::alert('danger', $e->getMessage());
  25. DBG::log($e);
  26. }
  27. UI::dol();
  28. }
  29. public function antAction() {
  30. UI::gora();
  31. try {
  32. } catch (Exception $e) {
  33. UI::alert('danger', $e->getMessage());
  34. DBG::log($e);
  35. }
  36. UI::dol();
  37. }
  38. }