public function getEstimatedWeight($i = 0,$mode = 0){
        if (!isset($this->previewList)){
            return false;
        }
        if (is_int($i) && $i >= 0){
            if ($mode == 1){
                return $this->previewList[$i]['EstimatedShippingWeight']['Unit'];
            } else if ($mode == 2){
                return $this->previewList[$i]['EstimatedShippingWeight'];
            } else 
            {
                return $this->previewList[$i]['EstimatedShippingWeight']['Value'];
            }
        } else {
            return false;
        }
    }
public function getEstimatedWeight($i = 0,$mode = 0){
        if (!isset($this->previewList)){
            return false;
        }
        if (is_int($i) && $i >= 0){
            if ($mode == 1){
                return $this->previewList[$i]['EstimatedShippingWeight']['Unit'];
            } else if ($mode == 2){
                return $this->previewList[$i]['EstimatedShippingWeight'];
            } else 
            {
                return $this->previewList[$i]['EstimatedShippingWeight']['Value'];
            }
        } else {
            return false;
        }
    }
public function getEstimatedWeight ( $ i = 0 , $ mode = 0 ) { if ( ! isset ( $ this -> previewList ) ) { return false ; } if ( is_int ( $ i ) && $ i >= 0 ) { if ( $ mode == 1 ) { return $ this -> previewList [ $ i ] [ 'EstimatedShippingWeight' ] [ 'Unit' ] ; } else if ( $ mode == 2 ) { return $ this -> previewList [ $ i ] [ 'EstimatedShippingWeight' ] ; } else { return $ this -> previewList [ $ i ] [ 'EstimatedShippingWeight' ] [ 'Value' ] ; } } else { return false ; } }
Returns the estimated shipping weight for the specified entry.

The mode can be set to change what is returned: 0 = value, 1 = unit, 2 = value & unit
@param int $i [optional]<p>List index to retrieve the value from. Defaults to 0.</p>
@param int $mode [optional]<p>The type of value to return. Defaults to only value.</p>
@return string|boolean weight value, or <b>FALSE</b> if improper input
Returns the estimated shipping weight for the specified entry .