src/ADT/VCard.php
public function addAddress( $streetAddress, $extendedAddress, $locality, $region, $postCode, $countryName, $postOfficeBox = NULL, $types = NULL )
	{
		if( is_string( $types ) )
			$types	= explode( ",", $types );
		$this->types['adr'][]	= array(
			'postOfficeBox'		=> $postOfficeBox,
			'extendedAddress'	=> $extendedAddress,
			'streetAddress'		=> $streetAddress,
			'locality'			=> $locality,
			'region'			=> $region,
			'postCode'			=> $postCode,
			'countryName'		=> $countryName,
			'types'				=> $types,
		);
	}
public function addAddress( $streetAddress, $extendedAddress, $locality, $region, $postCode, $countryName, $postOfficeBox = NULL, $types = NULL )
	{
		if( is_string( $types ) )
			$types	= explode( ",", $types );
		$this->types['adr'][]	= array(
			'postOfficeBox'		=> $postOfficeBox,
			'extendedAddress'	=> $extendedAddress,
			'streetAddress'		=> $streetAddress,
			'locality'			=> $locality,
			'region'			=> $region,
			'postCode'			=> $postCode,
			'countryName'		=> $countryName,
			'types'				=> $types,
		);
	}
public function addAddress ( $ streetAddress , $ extendedAddress , $ locality , $ region , $ postCode , $ countryName , $ postOfficeBox = NULL , $ types = NULL ) { if ( is_string ( $ types ) ) $ types = explode ( "," , $ types ) ; $ this -> types [ 'adr' ] [ ] = array ( 'postOfficeBox' => $ postOfficeBox , 'extendedAddress' => $ extendedAddress , 'streetAddress' => $ streetAddress , 'locality' => $ locality , 'region' => $ region , 'postCode' => $ postCode , 'countryName' => $ countryName , 'types' => $ types , ) ; }
Adds an Address.
@access		public
@param		string		$streetAddress			Street and Number
@param		string		$extendedAddress		...
@param		string		$locality				City or Location
@param		string		$region					Region or State
@param		string		$postCode				Post Code
@param		string		$countryName			Country
@param		string		$postOfficeBox			Post Office Box ID
@param		array		$types					List of Address Types
@return		void
Adds an Address .