mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2025-04-19 12:21:47 +02:00
Add module class exending oxwArticleDetails needed for pricealarm.
This commit is contained in:
parent
956a9143b4
commit
760b7abb20
30
application/component/widget/oewarticledetails.php
Normal file
30
application/component/widget/oewarticledetails.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Article detailed information widget.
|
||||||
|
*/
|
||||||
|
class oewArticleDetails extends oewArticleDetails_parent
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Class handling CAPTCHA image.
|
||||||
|
*
|
||||||
|
* @var object
|
||||||
|
*/
|
||||||
|
protected $captcha = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Template variable getter. Returns object of handling CAPTCHA image
|
||||||
|
*
|
||||||
|
* @return object
|
||||||
|
*/
|
||||||
|
public function getCaptcha()
|
||||||
|
{
|
||||||
|
if ($this->captcha === null) {
|
||||||
|
$this->captcha = oxNew('oeCaptcha');
|
||||||
|
}
|
||||||
|
return $this->captcha;
|
||||||
|
}
|
||||||
|
}
|
@ -41,7 +41,8 @@ $aModule = array(
|
|||||||
'contact' => 'oe/captcha/controllers/oecaptchacontact',
|
'contact' => 'oe/captcha/controllers/oecaptchacontact',
|
||||||
'invite' => 'oe/captcha/controllers/oecaptchainvite',
|
'invite' => 'oe/captcha/controllers/oecaptchainvite',
|
||||||
'pricealarm' => 'oe/captcha/controllers/oecaptchapricealarm',
|
'pricealarm' => 'oe/captcha/controllers/oecaptchapricealarm',
|
||||||
'suggest' => 'oe/captcha/controllers/oecaptchasuggest'),
|
'suggest' => 'oe/captcha/controllers/oecaptchasuggest',
|
||||||
|
'oxwarticledetails' => 'oe/captcha/application/component/widget/oewarticledetails'),
|
||||||
'files' => array(
|
'files' => array(
|
||||||
'oecaptcha' => 'oe/captcha/core/oecaptcha.php',
|
'oecaptcha' => 'oe/captcha/core/oecaptcha.php',
|
||||||
'oecaptchaEvents' => 'oe/captcha/core/oecaptchaevents.php',
|
'oecaptchaEvents' => 'oe/captcha/core/oecaptchaevents.php',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user