Public Member Functions | |
reset () | |
setError ($error) | |
getError () | |
append ($result) | |
getAllTrackings () | |
Protected Attributes | |
$_trackings = array() | |
$_error = null |
Definition at line 27 of file Result.php.
append | ( | $ | result | ) |
Add a tracking to the result
Definition at line 54 of file Result.php.
00055 { 00056 if ($result instanceof Mage_Shipping_Model_Tracking_Result_Abstract) { 00057 $this->_trackings[] = $result; 00058 } elseif ($result instanceof Mage_Shipping_Model_Rate_Result) { 00059 $trackings = $result->getAllTrackings(); 00060 foreach ($trackings as $track) { 00061 $this->append($track); 00062 } 00063 } 00064 return $this; 00065 }
getAllTrackings | ( | ) |
getError | ( | ) |
reset | ( | ) |
Reset tracking
Definition at line 36 of file Result.php.
00037 { 00038 $this->_trackings = array(); 00039 return $this; 00040 }
setError | ( | $ | error | ) |
$_error = null [protected] |
Definition at line 31 of file Result.php.
$_trackings = array() [protected] |
Definition at line 30 of file Result.php.