public function UcAddressesAddress::isOwned in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 class/UcAddressesAddress.class.php \UcAddressesAddress::isOwned()
Checks if the address is owned by an user.
An address is owned by an user if the owner's user id is not zero (= anonymous user).
@access public
Return value
boolean TRUE if the address is owned. FALSE otherwise.
3 calls to UcAddressesAddress::isOwned()
- UcAddressesAddress::save in class/
UcAddressesAddress.class.php - Saves address if address is marked as 'dirty'.
- UcAddressesAddress::setField in class/
UcAddressesAddress.class.php - Override of UcAddressesSchemaAddress::setField().
- UcAddressesAddress::setOwner in class/
UcAddressesAddress.class.php - Changes the owner of this address.
File
- class/
UcAddressesAddress.class.php, line 235 - Contains the UcAddressesAddress class.
Class
- UcAddressesAddress
- The main address class used by uc_addresses (and extension modules).
Code
public function isOwned() {
return $this
->getUserId() > 0;
}