}
# For initializing members of the class
-
+
function init($argarray) {
$this->args =& common_copy_args($argarray);
return true;
# For comparison with If-Last-Modified
# If not applicable, return NULL
-
+
function last_modified() {
return NULL;
}
-
+
function is_readonly() {
return false;
}
}
# Note: argarray ignored, since it's now passed in in init()
-
+
function handle($argarray=NULL) {
-
+
$lm = $this->last_modified();
-
+
if ($lm) {
header('Last-Modified: ' . date(DATE_RFC822, $lm));
$if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
} else {
return $def;
}
- }
+ }
function server_error($msg, $code=500) {
$action = $this->trimmed('action');