Public Member Functions | |
bindLocale ($observer) | |
bindStore () | |
massactionPrepareKey () |
Definition at line 35 of file Observer.php.
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
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 }