Final fixes for variable inserting
[shipsimu.git] / inc / classes / main / helper / captcha / class_BaseCaptcha.php
index 2da834e9fe681dc38bb1f6f199d747f5c2a101df..09b3e911701e33cf5133fff2be9e92ac202734d9 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class BaseCaptcha extends BaseHelper {
+       /**
+        * A helper instance for the form
+        */
+       private $helperInstance = null;
+
        /**
         * Instance of an RNG
         */
@@ -61,6 +66,25 @@ class BaseCaptcha extends BaseHelper {
        protected 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;
+       }
 }
 
 // [EOF]