|
|
@@ -918,6 +918,20 @@ class Zend_Controller_Request_Http extends Zend_Controller_Request_Abstract
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Was the request made by PATCH?
|
|
|
+ *
|
|
|
+ * @return boolean
|
|
|
+ */
|
|
|
+ public function isPatch()
|
|
|
+ {
|
|
|
+ if ('PATCH' == $this->getMethod()) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Is the request a Javascript XMLHttpRequest?
|
|
|
*
|
|
|
* Should work with Prototype/Script.aculo.us, possibly others.
|