API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsImageHandler Class Reference
Inheritance diagram for XoopsImageHandler:
Collaboration diagram for XoopsImageHandler:

Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from XoopsObjectHandler
 $db
 

Member Function Documentation

◆ create()

create (   $isNew = true)

Create a new XoopsImage

Parameters
boolean$isNewFlag the object as "new"
Returns
XoopsImage

◆ delete()

delete ( XoopsObject  $image)

Delete an image from the database

Parameters
XoopsObject | XoopsImage$imagea XoopsImage object
Returns
bool true on success, otherwise false

Reimplemented from XoopsObjectHandler.

◆ get()

get (   $id,
  $getbinary = true 
)

Load a XoopsImage object from the database

Parameters
int$idID
boolean$getbinary
Returns
XoopsImage XoopsImage, FALSE on fail

◆ getCount()

getCount ( CriteriaElement  $criteria = null)

Count some images

Parameters
CriteriaElement | CriteriaCompo$criteriaCriteriaElement
Returns
int

◆ 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
Here is the call graph for this function:

◆ getObjects()

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

Load XoopsImages from the database

Parameters
CriteriaElement | CriteriaCompo$criteriaCriteriaElement
boolean$id_as_keyUse the ID as key into the array
boolean$getbinary
Returns
array Array of XoopsImage objects
Here is the caller graph for this function:

◆ insert()

insert ( XoopsObject  $image)

Write a XoopsImage object to the database

Parameters
XoopsObject | XoopsImage$imagea XoopsImage object
Returns
bool true on success, otherwise false

Reimplemented from XoopsObjectHandler.

Here is the call graph for this function:

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