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

Public Member Functions

 addUser ($avatar_id, $user_id)
 
create ($isNew=true)
 
 delete (&$avatar)
 
get ($id)
 
 getCount ($criteria=null)
 
 getList ($avatar_type=null, $avatar_display=null)
 
getObjects ($criteria=null, $id_as_key=false)
 
 getUser (&$avatar)
 
 insert (&$avatar)
 
- 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 152 of file avatar.php.

Member Function Documentation

XoopsAvatarHandler::addUser (   $avatar_id,
  $user_id 
)

Add user

Parameters
int$avatar_id
int$user_id
Returns
bool

Definition at line 320 of file avatar.php.

References $result, $sql, and $user_id.

& XoopsAvatarHandler::create (   $isNew = true)

Create new Object

Parameters
bool$isNew
Returns
object

Definition at line 160 of file avatar.php.

References $avatar.

XoopsAvatarHandler::delete ( $avatar)

Delete an object from thr database

Parameters
unknown_type$avatar
Returns
unknown

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

Definition at line 239 of file avatar.php.

References $avatar, $result, and $sql.

& XoopsAvatarHandler::get (   $id)

Egt Object

Parameters
int$id
Returns
object

Definition at line 175 of file avatar.php.

References $avatar, $result, and $sql.

XoopsAvatarHandler::getCount (   $criteria = null)

Get count

Parameters
array$criteria
Returns
int

Definition at line 300 of file avatar.php.

References $criteria, $result, and $sql.

XoopsAvatarHandler::getList (   $avatar_type = null,
  $avatar_display = null 
)

Get a list of Avatars

Parameters
string$avatar_type
string$avatar_display
Returns
array

Definition at line 368 of file avatar.php.

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

Here is the call graph for this function:

& XoopsAvatarHandler::getObjects (   $criteria = null,
  $id_as_key = false 
)

Fetch a row of objects from the database

Parameters
array$criteria
bool$id_as_key
Returns
object

Definition at line 265 of file avatar.php.

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

Referenced by getList().

Here is the caller graph for this function:

XoopsAvatarHandler::getUser ( $avatar)

Get User

Parameters
object$avatar
Returns
array

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

Definition at line 342 of file avatar.php.

References $avatar, $result, $ret, and $sql.

XoopsAvatarHandler::insert ( $avatar)

Insert and Object into the database

Parameters
unknown_type$avatar
Returns
unknown

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

Definition at line 200 of file avatar.php.

References $avatar, $result, and $sql.


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