mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
404aba0bb8
commit
189501b775
@ -128,9 +128,11 @@ class HTTP {
|
|||||||
return self::findByTagAndAttribute($content, array("img" => "src"));
|
return self::findByTagAndAttribute($content, array("img" => "src"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Outputs appropriate header for downloading a file
|
* 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) {
|
static function sendFileToBrowser($fileData, $fileName, $mimeType = false) {
|
||||||
user_error("HTTP::sendFileToBrowser() deprecated; return a HTTPResponse::send_file() object instead", E_USER_NOTICE);
|
user_error("HTTP::sendFileToBrowser() deprecated; return a HTTPResponse::send_file() object instead", E_USER_NOTICE);
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
* @todo Force a specific execution order ($forceTop, $forceBottom)Ω
|
* @todo Force a specific execution order ($forceTop, $forceBottom)Ω
|
||||||
* @todo Extension to return different formats, e.g. JSON or XML
|
* @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
|
* @package forms
|
||||||
* @subpackage core
|
* @subpackage core
|
||||||
*/
|
*/
|
||||||
|
@ -163,7 +163,6 @@ class RequestHandlingData extends ViewableData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($access === null || (isset($accessParts[1]) && $accessParts[0] === $accessParts[1])) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,8 +276,6 @@ class ComponentSet extends DataObjectSet {
|
|||||||
/**
|
/**
|
||||||
* Returns information about this set in HTML format for debugging.
|
* Returns information about this set in HTML format for debugging.
|
||||||
*
|
*
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function debug() {
|
function debug() {
|
||||||
|
Loading…
Reference in New Issue
Block a user