Commit 955d2c3164da1b4e21cb6f51070301842b3239ad
1 parent
9f93ff8f
add to_Anubis_Source for type WEB_Action_Name
Showing
1 changed file
with
15 additions
and
1 deletions
Show diff stats
web/CXM_web_action.anubis
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | * © Calexium | 6 | * © Calexium |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | - | 9 | +transmit calexium_lib/web/types/web_action_name.anubis |
| 10 | //public type WEB_Action_Name: | 10 | //public type WEB_Action_Name: |
| 11 | // controller_action( | 11 | // controller_action( |
| 12 | // String controller, | 12 | // String controller, |
| @@ -20,3 +20,17 @@ | @@ -20,3 +20,17 @@ | ||
| 20 | // String url_name | 20 | // String url_name |
| 21 | // ) | 21 | // ) |
| 22 | //. | 22 | //. |
| 23 | + | ||
| 24 | +public define String | ||
| 25 | + to_Anubis_Source | ||
| 26 | + ( | ||
| 27 | + WEB_Action_Name wan | ||
| 28 | + )= | ||
| 29 | + if wan is | ||
| 30 | + { | ||
| 31 | + no_action then "no_action", | ||
| 32 | + controller_action(cont, ac_name) then "controller_action(\""+cont+"\", \""+ac_name+"\")", | ||
| 33 | + action_name(ac_name) then "action_name(\""+ac_name+"\")", | ||
| 34 | + url(url_name) then "url(\""+url_name+"\")" | ||
| 35 | + } | ||
| 36 | +. |