Mage_GoogleBase_Block_Adminhtml_Captcha Class Reference

Inheritance diagram for Mage_GoogleBase_Block_Adminhtml_Captcha:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getConfirmButtonHtml ()


Detailed Description

Definition at line 35 of file Captcha.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:13 2009 for Magento by  doxygen 1.5.8