Version: current

# Deprecated

## Classes summary

Currency | 2.5 Use Money class
MemberLoggerExtension | весь код перенесен в @link DataObjectLoggerExtension
RestrictedTextField | 2.5
TreeSelectorField | Use `TreeDropdownField` or `TreeMultiselectField`
UniqueRestrictedTextField | 2.5
UniqueTextField | 2.3

## Methods summary

BasicAuth | `disable()` | Use BasicAuth::protect_entire_site(false) instead.
BasicAuth | `enable()` | Use BasicAuth::protect_entire_site() instead.
ClassInfo | `ready()` | Use Security::database_is_ready() instead.
ContentController | `LangAttributes()` | 2.5 Use ContentLocale() instead and write attribute names suitable to XHTML/HTML templates directly in the template.
DataObjectSet | `toDropDownMap()` | 2.5 Please use map() instead
Debug | `backtrace()` | 2.5 Please use `SS_Backtrace::backtrace()`
Debug | `emailError()` | 2.5 To create error logs by email, use this code instead: <code> $emailWriter = new SS_LogEmailWriter('my@email.com'); SS_Log::add_writer($emailWriter, SS_Log::ERR); </code>
Debug | `get_custom_smtp_server()` | 2.5 See SS_Log on setting up error email notification
Debug | `get_rendered_backtrace()` | 2.5 Please use `SS_Backtrace::get_rendered_backtrace()`
Debug | `get_send_errors_to()` | 2.5 See SS_Log on setting up error email notification
Debug | `get_send_warnings_to()` | 2.5 See SS_Log on setting up error email notification
Debug | `log_error_if_necessary()` | 2.5 See SS_Log on setting up error file logging
Debug | `log_errors_to()` | 2.5 See SS_Log on setting up error file logging
Debug | `send_errors_to()` | 2.5 See SS_Log on setting up error email notification
Debug | `send_warnings_to()` | 2.5 See SS_Log on setting up error email notification
Debug | `set_custom_smtp_server()` | 2.5 See SS_Log on setting up error email notification
Director | `add_callback()` | 2.4 Use a custom extension on your controller.
Director | `currentPage()` | 2.4 Use `Director::get_current_page()`.
Director | `get_site_mode()` | 2.4
Director | `redirectBack()` | 2.5 Use Controller->redirectBack()
Director | `set_site_mode()` | 2.4
File | `instance_get()` | alternative_instance_get()
FileField | `getAllowedExtensions()` | 2.5
FileField | `getAllowedMaxFileSize()` | 2.5
FileField | `setAllowedExtensions()` | 2.5
FileField | `setAllowedMaxFileSize()` | 2.5
i18n | `default_lang()` | 2.4 Use Translatable::default_locale() or i18n::default_locale()
i18n | `disable()` | 2.4 Use Object::add_extension('Page', 'Translatable');
i18n | `enable()` | 2.4 Use Object::add_extension('Page', 'Translatable');
i18n | `set_default_lang()` | 2.4 Use Translatable::set_default_locale() or i18n::set_default_locale()
Member | `isAdmin()` | Use Permission::check('ADMIN') instead
NewsletterAdmin | `template_path()` | 2.4 Please use NewsletterAdmin::template_paths() and NewsletterAdmin::templateSource(). @see NewsletterType::getCMSFields();
Object | `cacheToFileWithArgs()` |
Object | `extInstance()` | 2.4 Use getExtensionInstance
Object | `set_uninherited()` |
RestfulService | `connect()` | Use RestfulService::request()
Security | `encrypt_passwords()` | 2.4 Use PasswordEncryptor_None instead.
Security | `get_encryption_algorithms()` | 2.4 Use PasswordEncryptor::get_encryptors()
Session | `addToArray()` | 2.5 Use Session::add_to_array($name, $val) instead
Session | `clearAll()` | 2.5 Use Session::clear_all()
Session | `getAll()` | 2.5 Use Session::get_all()
sfTime | `clearDate()` | This is a deprecated function. Do not use!
SS_HTTPResponse | `getLinks()` | 2.4 Use `HTTP::getLinksIn()` on DOMDocument.
TableListField | `ajax_refresh()` | Please use the standard URL through Link() which gives you the FieldHolder as an HTML fragment.
TableListField | `setExtraLinkParams()` | Put the query string onto your form's link instead :-)
Translatable | `choose_site_lang()` | 2.4 Use choose_site_locale()
Translatable | `current_lang()` | 2.4 Use get_current_locale()
Translatable | `default_lang()` | 2.4 Use default_locale()
Translatable | `disable()` | 2.4 Use Object::remove_extension('SiteTree', 'Translatable')
Translatable | `enable()` | 2.4 Use Object::add_extension('SiteTree', 'Translatable')
Translatable | `get_by_lang()` | 2.4 Use get_by_locale()
Translatable | `get_default_lang()` | 2.4 Use get_default_locale()
Translatable | `get_homepage_urlsegment_by_language()` | 2.4 Use get_homepage_urlsegment_by_locale()
Translatable | `get_homepage_urlsegment_by_locale()` | 2.4 Use `Translatable::get_homepage_link_by_locale()`
Translatable | `get_langs_by_id()` | 2.4 Use `Translatable::getTranslations()`
Translatable | `get_one_by_lang()` | 2.4 Use get_one_by_locale()
Translatable | `get_reading_lang()` | 2.4 Use get_reading_locale()
Translatable | `getTranslatedLangs()` | 2.4 Use getTranslatedLocales()
Translatable | `is_default_lang()` | 2.4 Use custom check: self::$default_locale == self::get_current_locale()
Translatable | `is_enabled()` | 2.4 Use Object::has_extension('SiteTree', 'Translatable')
Translatable | `isTranslation()` | 2.4
Translatable | `set_default_lang()` | 2.4 Use set_default_locale()
Translatable | `set_reading_lang()` | 2.4 Use set_current_locale()
Upload | `getAllowedExtensions()` | 2.5 Please use Upload_Validator::getAllowedExtensions() instead
Upload | `getAllowedMaxFileSize()` | 2.5 Please use Upload_Validator::getAllowedMaxFileSize() instead
Upload | `isValidExtension()` | 2.5 Please use Upload_Validator::isValidExtension() instead
Upload | `isValidSize()` | 2.5 Please use Upload_Validator::isValidExtension() instead
Upload | `setAllowedExtensions()` | 2.5 Please use Upload_Validator::setAllowedExtensions() instead
Upload | `setAllowedMaxFileSize()` | 2.5 Please use Upload_Validator::setAllowedMaxFileSize() instead
Validator | `getCombinedError()` | 2.4 Use custom code
Validator | `getError()` | 2.4 Use getErrors()
Validator | `showError()` | 2.4 Use Validator->getErrors() and custom code

## Properties summary

Director | $callbacks | 2.4
Director | $siteMode | 2.4
FileField | $allowedMaxFileSize | 2.5
Security | $encryptPasswords | 2.4 Please use 'none' as the default $encryptionAlgorithm instead
Security | $useSalt | 2.4 Please use a custom `PasswordEncryptor` instead
SimpleImageField | $allowedExtensions | 2.5

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -