extends |
XoopsObjectHandler |
---|
XOOPS avatar handler class. (Singelton)
This class is responsible for providing data access mechanisms to the data source of XOOPS block class objects.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
create(bool $isNew = true): XoopsAvatar
Create new Object
|
# | ||||
public
|
get(int $id): XoopsAvatar|false
Egt Object
|
# | ||||
public
|
insert(XoopsObject|XoopsAvatar $avatar): bool
Insert and Object into the database
Insert and Object into the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
delete(XoopsObject|XoopsAvatar $avatar): bool
Delete an object from the database
Delete an object from the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
&
|
getObjects(CriteriaElement|CriteriaCompo $criteria = null, bool $id_as_key = false): array
Fetch a row of objects from the database
Fetch a row of objects from the database |
# | ||||
public
|
getCount(CriteriaElement|CriteriaCompo $criteria = null): int
Get count
Get count |
# | ||||
public
|
addUser(int $avatar_id, int $user_id): bool
Add user
Add user |
# | ||||
public
|
getUser(XoopsAvatar $avatar): array|false
Get User
Get User |
# | ||||
public
|
getList(string|null $avatar_type = null, bool|null $avatar_display = null): array
Get a list of Avatars
Get a list of Avatars Parameters
|
# |
Methods inherited from XoopsObjectHandler |
---|
__construct(), XoopsObjectHandler(), |
Properties inherited from XoopsObjectHandler |
---|
$db |