MINOR Misc deprecation notices

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64382 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-10-16 08:44:08 +00:00
parent 404aba0bb8
commit 189501b775
4 changed files with 6 additions and 5 deletions

View File

@ -128,9 +128,11 @@ class HTTP {
return self::findByTagAndAttribute($content, array("img" => "src"));
}
/*
/**
* Outputs appropriate header for downloading a file
* exits() after the call, so that no further output is given
* exits() after the call, so that no further output is given.
*
* @deprecated 2.3 Return a HTTPResponse::send_file() object instead
*/
static function sendFileToBrowser($fileData, $fileName, $mimeType = false) {
user_error("HTTP::sendFileToBrowser() deprecated; return a HTTPResponse::send_file() object instead", E_USER_NOTICE);

View File

@ -22,6 +22,8 @@
* @todo Force a specific execution order ($forceTop, $forceBottom)Ω
* @todo Extension to return different formats, e.g. JSON or XML
*
* @deprecated 2.3 Use markup or JSON to transfer state to the client, and react with javascript callbacks instead
*
* @package forms
* @subpackage core
*/

View File

@ -163,7 +163,6 @@ class RequestHandlingData extends ViewableData {
}
if($access === null || (isset($accessParts[1]) && $accessParts[0] === $accessParts[1])) {
// user_error("Deprecated: please define static \$allowed_actions on your Controllers for security purposes", E_USER_NOTICE);
return true;
}

View File

@ -276,8 +276,6 @@ class ComponentSet extends DataObjectSet {
/**
* Returns information about this set in HTML format for debugging.
*
* @deprecated
*
* @return string
*/
function debug() {