extends |
XoopsObjectHandler |
---|
XOOPS image handler class.
This class is responsible for providing data access mechanisms to the data source of XOOPS image class objects.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
create(boolean $isNew = true): XoopsImage
Create a new {@link XoopsImage}
Create a new {@link XoopsImage} Parameters
Overrides |
# | ||||
public
|
get(int $id, boolean $getbinary = true): XoopsImage|false
Load a {@link XoopsImage} object from the database
Load a {@link XoopsImage} object from the database Parameters
Returns{@link XoopsImage}, false on fail Overrides |
# | ||||
public
|
insert(XoopsObject|XoopsImage $image): bool
Write a {@link XoopsImage} object to the database
Write a {@link XoopsImage} object to the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
delete(XoopsObject|XoopsImage $image): bool
Delete an image from the database
Delete an image from the database Parameters
Returnstrue on success, otherwise false Overrides |
# | ||||
public
|
getObjects(
CriteriaElement|CriteriaCompo $criteria = null,
boolean $id_as_key = false,
boolean $getbinary = false,
): array
Load {@link XoopsImage}s from the database
Load {@link XoopsImage}s from the database Parameters
ReturnsArray of {@link XoopsImage} objects |
# | ||||
public
|
getCount(CriteriaElement|CriteriaCompo $criteria = null): int
Count some images
Count some images Parameters
|
# | ||||
public
|
getList(int $imgcat_id, bool $image_display = null): array
Get a list of images
Get a list of images ReturnsArray of {@link XoopsImage} objects |
# |
Methods inherited from XoopsObjectHandler |
---|
__construct(), XoopsObjectHandler(), |
Properties inherited from XoopsObjectHandler |
---|
$db |