mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2024-12-22 12:26:17 +01: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;
|
||||||
|
}
|
||||||
|
}
|
11
metadata.php
11
metadata.php
@ -37,11 +37,12 @@ $aModule = array(
|
|||||||
'author' => 'OXID eSales AG',
|
'author' => 'OXID eSales AG',
|
||||||
'url' => 'http://www.oxid-esales.com/',
|
'url' => 'http://www.oxid-esales.com/',
|
||||||
'email' => '',
|
'email' => '',
|
||||||
'extend' => array('details' => 'oe/captcha/controllers/oecaptchadetails',
|
'extend' => array('details' => 'oe/captcha/controllers/oecaptchadetails',
|
||||||
'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…
Reference in New Issue
Block a user