Mage_Adminhtml_Model_Observer Class Reference

List of all members.

Public Member Functions

 bindLocale ($observer)
 bindStore ()
 massactionPrepareKey ()


Detailed Description

Definition at line 35 of file Observer.php.


Member Function Documentation

bindLocale ( observer  ) 

Definition at line 38 of file Observer.php.

00039     {
00040         if ($locale=$observer->getEvent()->getLocale()) {
00041             if ($choosedLocale = Mage::getSingleton('adminhtml/session')->getLocale()) {
00042                 $locale->setLocaleCode($choosedLocale);
00043             }
00044         }
00045         return $this;
00046     }

bindStore (  ) 

Definition at line 48 of file Observer.php.

00049     {
00050         Mage::app()->setCurrentStore('admin');
00051         return $this;
00052     }

massactionPrepareKey (  ) 

Prepare massaction separated data

Returns:
Mage_Adminhtml_Model_Observer

Definition at line 59 of file Observer.php.

00060     {
00061         $request = Mage::app()->getFrontController()->getRequest();
00062         if ($key = $request->getPost('massaction_prepare_key')) {
00063             $value = is_array($request->getPost($key)) ? $request->getPost($key) : split(',', $request->getPost($key));
00064             $request->setPost($key, $value ? $value : null);
00065         }
00066         return $this;
00067     }


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