X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fhelper%2Fcaptcha%2Fclass_BaseCaptcha.php;h=313ef4c69b9c75c99d67e1c59700f0bc7eea0000;hb=a34a10c85ac693d6d2c183258eb36deb353d003e;hp=483afb32696043342cdcc24d60a72a2e6ccf0688;hpb=361e6320e50a8bb1a3ccb675388b8042361669ae;p=core.git diff --git a/inc/classes/main/helper/captcha/class_BaseCaptcha.php b/inc/classes/main/helper/captcha/class_BaseCaptcha.php index 483afb32..313ef4c6 100644 --- a/inc/classes/main/helper/captcha/class_BaseCaptcha.php +++ b/inc/classes/main/helper/captcha/class_BaseCaptcha.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -22,16 +22,6 @@ * along with this program. If not, see . */ class BaseCaptcha extends BaseHelper { - /** - * A helper instance for the form - */ - private $helperInstance = null; - - /** - * Instance of an RNG - */ - private $rngInstance = null; - /** * Protected constructor * @@ -51,35 +41,7 @@ class BaseCaptcha extends BaseHelper { */ protected final function initializeRandomNumberGenerator (FrameworkInterface $extraInstance = null) { // Get an RNG from factory - $this->rngInstance = ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance)); - } - - /** - * Getter for RNG instance - * - * @return $rngInstance An instance of a random number generator (RNG) - */ - public final function getRngInstance () { - return $this->rngInstance; - } - - /** - * Setter for helper instance - * - * @param $helperInstance An instance of a helper class - * @return void - */ - protected final function setHelperInstance (HelpableTemplate $helperInstance) { - $this->helperInstance = $helperInstance; - } - - /** - * Getter for helper instance - * - * @return $helperInstance An instance of a helper class - */ - public final function getHelperInstance () { - return $this->helperInstance; + $this->setRngInstance(ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance))); } }