summaryrefslogtreecommitdiff
path: root/action.php
diff options
context:
space:
mode:
Diffstat (limited to 'action.php')
-rw-r--r--action.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/action.php b/action.php
new file mode 100644
index 000000000..539077bc3
--- /dev/null
+++ b/action.php
@@ -0,0 +1,21 @@
+<?php
+
+class Action { // lawsuit
+
+ var $args;
+
+ function Action() {
+ }
+
+ function arg($key) {
+ if (array_has_key($this->args, $key)) {
+ return $this->args[$key];
+ } else {
+ return NULL;
+ }
+ }
+
+ function handle($args) {
+ $this->args = copy($argarray);
+ }
+}