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 52a895fbb2
commit 8113e9ce84

View File

@ -204,6 +204,15 @@ class SSViewer extends Object {
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,
);