XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsImageHandler Class Reference
Inheritance diagram for XoopsImageHandler:
XoopsObjectHandler

Public Member Functions

create ($isNew=true)
 
get ($id, $getbinary=true)
 
 insert (&$image)
 
 delete (&$image)
 
getObjects ($criteria=null, $id_as_key=false, $getbinary=false)
 
 getCount ($criteria=null)
 
getList ($imgcat_id, $image_display=null)
 
- Public Member Functions inherited from XoopsObjectHandler
 __construct (&$db)
 
create ()
 
get ($int_id)
 

Additional Inherited Members

- Data Fields inherited from XoopsObjectHandler
 $db
 

Detailed Description

Definition at line 49 of file image.php.

Member Function Documentation

◆ create()

& create ( $isNew = true)

Create a new XoopsImage

Parameters
bool$isNewFlag the object as "new"
Returns
object

Definition at line 58 of file image.php.

◆ delete()

delete ( & $image)

Delete an image from the database

Parameters
object&$imageXoopsImage
Returns
bool

Reimplemented from XoopsObjectHandler.

Definition at line 158 of file image.php.

◆ get()

& get ( $id,
$getbinary = true )

Load a XoopsImage object from the database

Parameters
int$idID
bool$getbinary
Returns
object XoopsImage, FALSE on fail

Definition at line 74 of file image.php.

◆ getCount()

getCount ( $criteria = null)

Count some images

Parameters
object$criteriaCriteriaElement
Returns
int

Definition at line 220 of file image.php.

◆ getList()

& getList ( $imgcat_id,
$image_display = null )

Get a list of images

Parameters
int$imgcat_id
bool$image_display
Returns
array Array of XoopsImage objects

Definition at line 240 of file image.php.

◆ getObjects()

& getObjects ( $criteria = null,
$id_as_key = false,
$getbinary = false )

Load XoopsImages from the database

Parameters
object$criteriaCriteriaElement
bool$id_as_keyUse the ID as key into the array
bool$getbinary
Returns
array Array of XoopsImage objects

Definition at line 181 of file image.php.

◆ insert()

insert ( & $image)

Write a XoopsImage object to the database

Parameters
object&$imageXoopsImage
Returns
bool

Reimplemented from XoopsObjectHandler.

Definition at line 98 of file image.php.


The documentation for this class was generated from the following file: