(Yaf >=3.0.5)
Yaf_Request_Abstract::isDelete — Determine if the request is a DELETE request
Checks whether the request was sent with the DELETE method.
Bu işlevin bağımsız değişkeni yoktur.
Örnek 1 Yaf_Request_Abstract::isDelete() example
<?php
class CommentController extends Yaf_Controller_Abstract
{
public function removeAction()
{
// Assuming the request was sent with DELETE /comment/remove/id/12
var_dump($this->getRequest()->isDelete());
}
}
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
bool(true)