Public Member Functions | |
addMessage (Mage_Core_Model_Message_Abstract $message) | |
getMessages ($type='') | |
Protected Attributes | |
$_messages = array() |
Definition at line 36 of file Exception.php.
addMessage | ( | Mage_Core_Model_Message_Abstract $ | message | ) |
Definition at line 40 of file Exception.php.
00041 { 00042 if (!isset($this->_messages[$message->getType()])) { 00043 $this->_messages[$message->getType()] = array(); 00044 } 00045 $this->_messages[$message->getType()][] = $message; 00046 return $this; 00047 }
getMessages | ( | $ | type = '' |
) |
Definition at line 49 of file Exception.php.
00050 { 00051 if ('' == $type) { 00052 $arrRes = array(); 00053 foreach ($this->_messages as $messageType => $messages) { 00054 $arrRes = array_merge($arrRes, $messages); 00055 } 00056 return $arrRes; 00057 } 00058 return isset($this->_messages[$type]) ? $this->_messages[$type] : array(); 00059 }
$_messages = array() [protected] |
Definition at line 38 of file Exception.php.