From 8113e9ce84433ab5424a716ee9f5fdc02d32c210 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 17 Oct 2011 18:00:30 +0200 Subject: [PATCH] ENHANCEMENT Added SSViewer::getOption() as a logical counterpart to SSViewer::setOption() --- core/SSViewer.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/SSViewer.php b/core/SSViewer.php index d7bc8f0ca..2d04f9f74 100644 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -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, );