ENHANCEMENT Added SSViewer::getOption() as a logical counterpart to SSViewer::setOption()

This commit is contained in:
Ingo Schommer 2011-10-17 18:00:30 +02:00
parent ad13f80f57
commit 6d6fdd24d9

View File

@ -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,
);