Remove deprecated Director::urlParam() and Director::urlParams()

Use the methods param() and params() on SS_HTTPRequest instead.
This commit is contained in:
Sean Harvey 2012-11-15 10:42:55 +13:00
parent 671881420b
commit de0ade9636

View File

@ -308,26 +308,6 @@ class Director implements TemplateGlobalProvider {
}
}
}
/**
* Returns the urlParam with the given name
*
* @deprecated 3.0 Use SS_HTTPRequest->param()
*/
public static function urlParam($name) {
Deprecation::notice('3.0', 'Use SS_HTTPRequest->param() instead.');
if(isset(Director::$urlParams[$name])) return Director::$urlParams[$name];
}
/**
* Returns an array of urlParams.
*
* @deprecated 3.0 Use SS_HTTPRequest->params()
*/
public static function urlParams() {
Deprecation::notice('3.0', 'Use SS_HTTPRequest->params() instead.');
return Director::$urlParams;
}
/**
* Set url parameters (should only be called internally by RequestHandler->handleRequest()).