You are here

public function UcAddressesAddressBook::isOwned in Ubercart Addresses 6.2

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

Checks if the address book 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.

6 calls to UcAddressesAddressBook::isOwned()
UcAddressesAddressBook::deleteOne in class/UcAddressesAddressBook.class.php
Deletes one address.
UcAddressesAddressBook::loadAll in class/UcAddressesAddressBook.class.php
Loads all addresses from database when they not already loaded.
UcAddressesAddressBook::loadDefaults in class/UcAddressesAddressBook.class.php
Loads all addresses from database when they not already loaded.
UcAddressesAddressBook::loadOne in class/UcAddressesAddressBook.class.php
Loads a single address from the database if not already loaded.
UcAddressesAddressBook::setAddressAsDefault in class/UcAddressesAddressBook.class.php
Set an address as a default address.

... See full list

File

class/UcAddressesAddressBook.class.php, line 602
Contains the UcAddressesAddressBook class.

Class

UcAddressesAddressBook
The address book class

Code

public function isOwned() {
  return $this
    ->getUserId() > 0;
}