summaryrefslogtreecommitdiff
path: root/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-08 22:16:04 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-08 22:16:04 -0400
commitf0a30cc89ddf82e3c774800d24f0ea3664065d9c (patch)
tree13053422786e83ab57a55e63879e5ceb07d9ecfd /action.php
parent2df28057cdd5c54fb4f754f5c2222154efe2ad5b (diff)
read-only stuff
darcs-hash:20080509021604-84dde-f785fc09dd435fc12741b3a75184e2425721d03d.gz
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);
+ }
+}