Mage_Shipping_Model_Tracking_Result Class Reference

List of all members.

Public Member Functions

 reset ()
 setError ($error)
 getError ()
 append ($result)
 getAllTrackings ()

Protected Attributes

 $_trackings = array()
 $_error = null


Detailed Description

Definition at line 27 of file Result.php.


Member Function Documentation

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 (  ) 

Return all trackings in the result

Definition at line 70 of file Result.php.

00071     {
00072         return $this->_trackings;
00073     }

getError (  ) 

Definition at line 47 of file Result.php.

00048     {
00049         return $this->_error;
00050     }

reset (  ) 

Reset tracking

Definition at line 36 of file Result.php.

00037     {
00038         $this->_trackings = array();
00039         return $this;
00040     }

setError ( error  ) 

Definition at line 42 of file Result.php.

00043     {
00044         $this->_error = $error;
00045     }


Member Data Documentation

$_error = null [protected]

Definition at line 31 of file Result.php.

$_trackings = array() [protected]

Definition at line 30 of file Result.php.


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

Generated on Sat Jul 4 17:24:52 2009 for Magento by  doxygen 1.5.8