class_BaseCaptcha.php

Go to the documentation of this file.
00001 <?php
00024 class BaseCaptcha extends BaseHelper {
00028         private $helperInstance = null;
00029 
00033         private $rngInstance = null;
00034 
00041         protected function __construct ($className) {
00042                 // Call parent constructor
00043                 parent::__construct($className);
00044         }
00045 
00052         protected final function initializeRandomNumberGenerator (FrameworkInterface $extraInstance = null) {
00053                 // Get an RNG from factory
00054                 $this->rngInstance = ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance));
00055         }
00056 
00062         public final function getRngInstance () {
00063                 return $this->rngInstance;
00064         }
00065 
00072         protected final function setHelperInstance (HelpableTemplate $helperInstance) {
00073                 $this->helperInstance = $helperInstance;
00074         }
00075 
00081         public final function getHelperInstance () {
00082                 return $this->helperInstance;
00083         }
00084 }
00085 
00086 // [EOF]
00087 ?>

Generated on Mon Dec 8 01:06:45 2008 for Ship-Simulator by  doxygen 1.5.6