Mage_Adminhtml_Helper_Media_Js Class Reference

Inheritance diagram for Mage_Adminhtml_Helper_Media_Js:

Mage_Core_Helper_Js Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 __construct ()
 getTranslatorScript ()


Detailed Description

Definition at line 35 of file Js.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 38 of file Js.php.

00039     {
00040          $this->_translateData = array(
00041             'Complete' => $this->__('Complete'),
00042             'File size should be more than 0 bytes' => $this->__('File size should be more than 0 bytes'),
00043             'Upload Security Error' => $this->__('Upload Security Error'),
00044             'Upload HTTP Error'     => $this->__('Upload HTTP Error'),
00045             'Upload I/O Error'     => $this->__('Upload I/O Error'),
00046             'SSL Error: Invalid or self-signed certificate'     => $this->__('SSL Error: Invalid or self-signed certificate'),
00047             'Tb' => $this->__('Tb'),
00048             'Gb' => $this->__('Gb'),
00049             'Mb' => $this->__('Mb'),
00050             'Kb' => $this->__('Kb'),
00051             'b' => $this->__('b')
00052          );
00053     }


Member Function Documentation

getTranslatorScript (  ) 

Retrieve JS translator initialization javascript

Returns:
string

Reimplemented from Mage_Core_Helper_Js.

Definition at line 60 of file Js.php.

00061     {
00062         $script = 'if (!window.Translator) {'
00063                 . '    var Translator = new Translate('.$this->getTranslateJson().');'
00064                 . '} else {'
00065                 . '    Translator.add('.$this->getTranslateJson().');'
00066                 . '}';
00067         return $this->getScript($script);
00068     }


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

Generated on Sat Jul 4 17:23:12 2009 for Magento by  doxygen 1.5.8