Mage_Adminhtml_Block_Page Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Page:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getLang ()
 addBodyClass ($className)


Detailed Description

Definition at line 34 of file Page.php.


Constructor & Destructor Documentation

__construct (  ) 

Class constructor

Reimplemented from Varien_Object.

Definition at line 41 of file Page.php.

00042     {
00043         parent::__construct();
00044         $this->setTemplate('page.phtml');
00045         $action = Mage::app()->getFrontController()->getAction();
00046         if ($action) {
00047             $this->addBodyClass($action->getFullActionName('-'));
00048         }
00049     }


Member Function Documentation

addBodyClass ( className  ) 

Add CSS class to page body tag

Parameters:
string $className
Returns:
Mage_Adminhtml_Block_Page

Definition at line 70 of file Page.php.

00071     {
00072         $className = preg_replace('#[^a-z0-9]+#', '-', strtolower($className));
00073         $this->setBodyClass($this->getBodyClass() . ' ' . $className);
00074         return $this;
00075     }

getLang (  ) 

Get current language

Returns:
unknown

Definition at line 56 of file Page.php.

00057     {
00058         if (!$this->hasData('lang')) {
00059             $this->setData('lang', substr(Mage::app()->getLocale()->getLocaleCode(), 0, 2));
00060         }
00061         return $this->getData('lang');
00062     }


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

Generated on Sat Jul 4 17:22:53 2009 for Magento by  doxygen 1.5.8