mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-20 01:26:04 +02:00
ENHANCEMENT Added SSViewer::getOption() as a logical counterpart to SSViewer::setOption()
This commit is contained in:
parent
ad13f80f57
commit
6d6fdd24d9
@ -235,6 +235,15 @@ class SSViewer {
|
||||
public static function setOption($optionName, $optionVal) {
|
||||
SSViewer::$options[$optionName] = $optionVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param String
|
||||
* @return Mixed
|
||||
*/
|
||||
static function getOption($optionName) {
|
||||
return SSViewer::$options[$optionName];
|
||||
}
|
||||
|
||||
protected static $options = array(
|
||||
'rewriteHashlinks' => true,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user