mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
029a8b9586
API Substitute Zend_Locale with Locale / NumberFormatter API Substitute Zend_Date with IntlDateFormatter API Added DBTIme::Nice12, FormatFromSettings API Added Short() method to DBDate / DBTime / DBDatetime API Add Date::getTimestamp() API Added setSubmittedValue api for FormField API Add second arg to base FormField::setValue() API Major refactor of i18n into component data parts API Implement Resettable interface to reset objects between tests ENHANCEMENT Changed DBField::create_field return type to `static` to support better type hinting ENHANCEMENT i18nTextCollector supports __CLASS__
18 lines
368 B
PHP
18 lines
368 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Core;
|
|
|
|
/**
|
|
* Represents a class with a local cache which normally invalidates itself between requests.
|
|
*
|
|
* Designed so that tests can automatically flush these objects between runs in lieu
|
|
* of a real change.
|
|
*/
|
|
interface Resettable
|
|
{
|
|
/**
|
|
* Reset the local cache of this object
|
|
*/
|
|
public static function reset();
|
|
}
|