XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsImageHandler Class Reference
Inheritance diagram for XoopsImageHandler:
Inheritance graph

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from XoopsObjectHandler
 $db
 

Detailed Description

Definition at line 140 of file image.php.

Member Function Documentation

& XoopsImageHandler::create (   $isNew = true)

Create a new XoopsImage

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

Definition at line 148 of file image.php.

References $image.

XoopsImageHandler::delete ( $image)

Delete an image from the database

Parameters
object&$imageXoopsImage
Returns
bool

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 246 of file image.php.

References $image, $result, and $sql.

& XoopsImageHandler::get (   $id,
  $getbinary = true 
)

Load a XoopsImage object from the database

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

Definition at line 164 of file image.php.

References $image, $result, and $sql.

XoopsImageHandler::getCount (   $criteria = null)

Count some images

Parameters
object$criteriaCriteriaElement
Returns
int

Definition at line 312 of file image.php.

References $criteria, $result, and $sql.

XoopsImageHandler::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 332 of file image.php.

References $criteria, $i, $ret, and getObjects().

Here is the call graph for this function:

XoopsImageHandler::getObjects (   $criteria = null,
  $id_as_key = false,
  $getbinary = false 
)

Load XoopsImages from the database

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

Definition at line 273 of file image.php.

References $criteria, $image, $limit, $result, $ret, $sql, and $start.

Referenced by getList().

Here is the caller graph for this function:

XoopsImageHandler::insert ( $image)

Write a XoopsImage object to the database

Parameters
object&$imageXoopsImage
Returns
bool

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 188 of file image.php.

References $image, $image_id, $result, and $sql.


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