| <?php | |
| define("ERROR",-1000); | |
| class Shipping { | |
| var $_shipping; | |
| function Shipping(){ | |
| $this->_shipping = array(); | |
| } | |
| function getCount(){ | |
| return count($this->_shipping); | |
| } | |
| function getItemAt($at){ | |
| if (isset($this->shipping[$at])) | |
| return $this->shipping[$at]; | |
| else | |
| return ERROR; | |
| } | |
| function setShipping($details){ | |
| $this->_shipping = $details; | |
| } | |
| function getShipping(){ | |
| return $this->_shipping; | |
| } | |
| } | |
| ?> |