You are here

public function UcAddressesAddress::isDefault in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 class/UcAddressesAddress.class.php \UcAddressesAddress::isDefault()

Tells if the address is a default address of type $type.

@access public

Parameters

string $type: The type of default.

Return value

boolean TRUE if the address is a default address of type $type. FALSE otherwise.

2 calls to UcAddressesAddress::isDefault()
UcAddressesAddress::save in class/UcAddressesAddress.class.php
Saves address if address is marked as 'dirty'.
UcAddressesAddress::setAsDefault in class/UcAddressesAddress.class.php
Sets this address as a default address of type $type

File

class/UcAddressesAddress.class.php, line 401
Contains the UcAddressesAddress class.

Class

UcAddressesAddress
The main address class used by uc_addresses (and extension modules).

Code

public function isDefault($type = 'billing') {
  return $this
    ->getSchemaAddress()->{'default_' . $type};
}