if (method_exists($this->captcha, $method = 'set_' . $name)) { $this->captcha->{$method}($value); } else { if (method_exists($this, $method = 'set_' . $name)) { $this->{$method}($value); } } } public function __unset($name) { if (method_exists($this->captcha, $method = 'unset_' . $name)) { $this->captcha->{$method}(); } else { if (method_exists($this, $method = 'unset_' . $name)) { $this->{$method}(); } } } /** * Get the BotDetect CakePHP CAPTCHA plugin information. * * @return array */ public static function getProductInfo() { return self::$productInfo; } } // static field initialization CaptchaComponent::$productInfo = ['name' => 'BotDetect 4 PHP Captcha generator integration for the CakePHP framework', 'version' => '4.1.0'];
/** * Get Captcha object instance. * * @return object */ function &captcha_instance() { return CaptchaComponent::getInstance(); }