diff options
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php new file mode 100644 index 000000000..ed25ac9d8 --- /dev/null +++ b/lib/action.php @@ -0,0 +1,23 @@ +<?php + +if (!defined('MICROBLOG')) { exit(1) } + +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); + } +} |