Entity/Location.php
public function getAddress($include_country = false)
    {
        $string = '';
        if ($v = $this->getAddressLine1()) $string .= $v.', ';
        if ($v = $this->getAddressLine2()) $string .= $v.', ';
        if ($v = $this->getAddressLine3()) $string .= $v.', ';
        $string .= $this->getCityStateZip();

        if ($include_country) $string .= $this->getCountryCode();

        return $string;
    }
public function getAddress($include_country = false)
    {
        $string = '';
        if ($v = $this->getAddressLine1()) $string .= $v.', ';
        if ($v = $this->getAddressLine2()) $string .= $v.', ';
        if ($v = $this->getAddressLine3()) $string .= $v.', ';
        $string .= $this->getCityStateZip();

        if ($include_country) $string .= $this->getCountryCode();

        return $string;
    }
public function getAddress ( $ include_country = false ) { $ string = '' ; if ( $ v = $ this -> getAddressLine1 ( ) ) $ string .= $ v . ', ' ; if ( $ v = $ this -> getAddressLine2 ( ) ) $ string .= $ v . ', ' ; if ( $ v = $ this -> getAddressLine3 ( ) ) $ string .= $ v . ', ' ; $ string .= $ this -> getCityStateZip ( ) ; if ( $ include_country ) $ string .= $ this -> getCountryCode ( ) ; return $ string ; }
Get address string

@author Tom Haskins-Vaughan <tom@harvestcloud.com>
@since  2012-04-25

@param  bool  $include_country

@return string
Get address string