function filter($key = NULL, $func = NULL) { if (!$key) { return array_keys($this->filter); } if (!$func) { return $this->filter[$key]; } $this->filter[$key] = $func; }