diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-14 15:03:00 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-14 15:03:00 -0400 |
commit | 1c5d1c45864b86a178e10886e50c99132b4821c4 (patch) | |
tree | 006f2af894b307437561408b7579abf0cc1aceee /lib/action.php | |
parent | 8842f3c29af6192273ca3337271a2ea360f19683 (diff) |
move library files to lib
darcs-hash:20080514190300-84dde-626b88c9da510c8830d2eff2d36b72f18e6353d4.gz
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); + } +} |