-
- /**
- * Return true if read only.
- *
- * @param array $args other arguments
- *
- * @return boolean is read only action?
- */
- function isReadOnly($args)
- {
- return $_SERVER['REQUEST_METHOD'] != 'POST';
- }
-
- /**
- * Return last modified, if applicable.
- *
- * @return string last modified http header
- */
- function lastModified()
- {
- return null;
- }
-
- /**
- * Return etag, if applicable.
- *
- * @return string etag http header
- */
- function etag()
- {
- return null;
- }
-
- /**
- * Does this require authentication?
- *
- * @return boolean true if delete, else false
- */
- function requiresAuth()
- {
- if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- return true;
- } else {
- return false;
- }
- }