本文整理汇总了PHP中Zend_Gdata_App::_httpMethodOverride方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_App::_httpMethodOverride方法的具体用法?PHP Zend_Gdata_App::_httpMethodOverride怎么用?PHP Zend_Gdata_App::_httpMethodOverride使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata_App
的用法示例。
在下文中一共展示了Zend_Gdata_App::_httpMethodOverride方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setHttpMethodOverride
/**
* Toggle using POST instead of PUT and DELETE HTTP methods
*
* Some feed implementations do not accept PUT and DELETE HTTP
* methods, or they can't be used because of proxies or other
* measures. This allows turning on using POST where PUT and
* DELETE would normally be used; in addition, an
* X-Method-Override header will be sent with a value of PUT or
* DELETE as appropriate.
*
* @param boolean $override Whether to override PUT and DELETE with POST.
* @return void
*/
public static function setHttpMethodOverride($override = true)
{
self::$_httpMethodOverride = $override;
}