private function UcAddressesAddressBook::__construct in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 class/UcAddressesAddressBook.class.php \UcAddressesAddressBook::__construct()
AddressBook object constructor.
@access private
Parameters
mixed $user: Either an user id or an user object.
Return value
void
File
- class/
UcAddressesAddressBook.class.php, line 117 - Contains the UcAddressesAddressBook class.
Class
- UcAddressesAddressBook
- The address book class
Code
private function __construct($user) {
if (is_object($user)) {
$user = $user->uid;
}
$this->uid = $user;
}