Public Member Functions | |
__construct () | |
getConfirmButtonHtml () |
Definition at line 35 of file Captcha.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 38 of file Captcha.php.
00039 { 00040 parent::__construct(); 00041 $this->setTemplate('googlebase/captcha.phtml'); 00042 }
getConfirmButtonHtml | ( | ) |
Definition at line 44 of file Captcha.php.
00045 { 00046 $confirmButton = $this->getLayout()->createBlock('adminhtml/widget_button') 00047 ->setData(array( 00048 'label' => $this->__('Confirm'), 00049 'onclick' => "if($('user_confirm').value != '') 00050 { 00051 setLocation('".$this->getUrl('*/*/confirmCaptcha', array('_current'=>true))."' + 'user_confirm/' + $('user_confirm').value + '/'); 00052 }", 00053 'class' => 'task' 00054 )); 00055 return $confirmButton->toHtml(); 00056 }