source/Application/Model/Address.php
public function toString()
    {
        $sFirstName = $this->oxaddress__oxfname->value;
        $sLastName = $this->oxaddress__oxlname->value;
        $sStreet = $this->oxaddress__oxstreet->value;
        $sStreetNr = $this->oxaddress__oxstreetnr->value;
        $sCity = $this->oxaddress__oxcity->value;

        //format it
        $sAddress = "";
        if ($sFirstName || $sLastName) {
            $sAddress = $sFirstName . ($sFirstName ? " " : "") . "$sLastName, ";
        }
        $sAddress .= "$sStreet $sStreetNr, $sCity";

        return trim($sAddress);
    }
public function toString()
    {
        $sFirstName = $this->oxaddress__oxfname->value;
        $sLastName = $this->oxaddress__oxlname->value;
        $sStreet = $this->oxaddress__oxstreet->value;
        $sStreetNr = $this->oxaddress__oxstreetnr->value;
        $sCity = $this->oxaddress__oxcity->value;

        //format it
        $sAddress = "";
        if ($sFirstName || $sLastName) {
            $sAddress = $sFirstName . ($sFirstName ? " " : "") . "$sLastName, ";
        }
        $sAddress .= "$sStreet $sStreetNr, $sCity";

        return trim($sAddress);
    }
public function toString ( ) { $ sFirstName = $ this -> oxaddress__oxfname -> value ; $ sLastName = $ this -> oxaddress__oxlname -> value ; $ sStreet = $ this -> oxaddress__oxstreet -> value ; $ sStreetNr = $ this -> oxaddress__oxstreetnr -> value ; $ sCity = $ this -> oxaddress__oxcity -> value ; //format it $ sAddress = "" ; if ( $ sFirstName || $ sLastName ) { $ sAddress = $ sFirstName . ( $ sFirstName ? " " : "" ) . "$sLastName, " ; } $ sAddress .= "$sStreet $sStreetNr, $sCity" ; return trim ( $ sAddress ) ; }
Formats address as a single line string

@return string
Formats address as a single line string