diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-24 00:20:26 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-24 00:20:26 +0000 |
commit | 672eca53371b131484d00cbe6a069092d0b7f6b3 (patch) | |
tree | 507cce76fc6dc9d022455eed9075e039fa779da2 /core/helpers/rest.php | |
parent | c76d730a7c07253e7cc3224a78c616ce63989f40 (diff) |
Lots of deltas rolled up into a bigger change. Sorry for the mess.
1) Deleted in-place-editing. We'll be replacing this with a real edit
system that groups settings together and is more coherent.
2) Tweaked the way that dialog boxes work to get the ajax stuff working
again. It's imperfect and does not work properly for uploading images.
This is going to get redone also, but this is a good resting point.
3) Created edit forms for albums and photos. Moved _update and _create out
of Items_Controller and into the individual subclasses.
4) Created access::required which is a shorthand for:
if (!access::can(...)) {
access::forbidden();
}
5) Added validation rules to Items_Model
6) Converted login to use the regular modal dialog approach in the theme.
Diffstat (limited to 'core/helpers/rest.php')
-rw-r--r-- | core/helpers/rest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/helpers/rest.php b/core/helpers/rest.php index a0d6e732..061c2f6b 100644 --- a/core/helpers/rest.php +++ b/core/helpers/rest.php @@ -23,8 +23,10 @@ class rest_Core { const CREATED = "201 Created"; const ACCEPTED = "202 Accepted"; const NO_CONTENT = "204 No Content"; + const RESET_CONTENT = "205 Reset Content"; const PARTIAL_CONTENT = "206 Partial Content"; const MOVED_PERMANENTLY = "301 Moved Permanently"; + const FOUND = "302 Found"; const SEE_OTHER = "303 See Other"; const NOT_MODIFIED = "304 Not Modified"; const TEMPORARY_REDIRECT = "307 Temporary Redirect"; |