(Yaf >=3.0.5)
Yaf_Request_Abstract::isPatch — Determine if the request is a PATCH request
Checks whether the request was sent with the PATCH method.
Questa funzione non contiene parametri.
Example #1 Yaf_Request_Abstract::isPatch() example
<?php
class ProfileController extends Yaf_Controller_Abstract
{
public function updateAction()
{
// Assuming the request was sent with PATCH /profile/update
var_dump($this->getRequest()->isPatch());
}
}
?>Il precedente esempio visualizzerà qualcosa simile a:
bool(true)