mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Add getters for Versioned object properties
This commit is contained in:
parent
6d9d53059c
commit
587c489d0f
@ -1322,6 +1322,22 @@ class Versioned extends DataExtension {
|
||||
public function cacheKeyComponent() {
|
||||
return 'versionedmode-'.self::get_reading_mode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of possible stages.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getVersionedStages() {
|
||||
return $this->stages;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDefaultStage() {
|
||||
return $this->defaultStage;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user