Commit 20045d09b7564ec8febeb9ef5d8a608a821f045a

Authored by David RENÉ
1 parent 39ca95a4

Add get_WEB_Action_Name from web arg

Showing 1 changed file with 19 additions and 1 deletions   Show diff stats
web/CXM_web_arg_utils.anubis
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 transmit tools/basis.anubis 8 transmit tools/basis.anubis
9 transmit xlib/web/CXM_common.anubis 9 transmit xlib/web/CXM_common.anubis
10 transmit xlib/database/db_types.anubis 10 transmit xlib/database/db_types.anubis
11 - 11 +transmit xlib/web/types/web_action_name.anubis
12 12
13 public define One 13 public define One
14 add_web_arg 14 add_web_arg
@@ -600,3 +600,21 @@ public define Word8 @@ -600,3 +600,21 @@ public define Word8
600 }. 600 }.
601 601
602 602
  603 +public define WEB_Action_Name
  604 + get_WEB_Action_Name
  605 + (
  606 + List(Web_arg) lwa,
  607 + String controller,
  608 + String action
  609 + )=
  610 + if get_String(lwa, action) is
  611 + {
  612 + failure then no_action
  613 + success(action_n) then
  614 + if get_String(lwa, controller) is
  615 + {
  616 + failure then action_name(action_n)
  617 + success(controller_n) then controller_action(controller_n, action_n)
  618 + }
  619 + }
  620 +.