XOOPS  2.6.0
Xoops\Core\Kernel\XoopsObjectHandler Class Reference
Inheritance diagram for Xoops\Core\Kernel\XoopsObjectHandler:
Inheritance graph

Public Member Functions

 create ()
 
 delete (XoopsObject $object, $force=true)
 
 get ($int_id)
 
 insert (XoopsObject $object, $force=true)
 

Public Attributes

 $db2
 

Protected Member Functions

 __construct (Connection $db=null)
 

Detailed Description

Definition at line 29 of file XoopsObjectHandler.php.

Constructor & Destructor Documentation

Xoops\Core\Kernel\XoopsObjectHandler::__construct ( Connection  $db = null)
protected

called from child classes only

Parameters
Connection$dbreference to the Xoops\Core\Database\Connectionobject

Definition at line 44 of file XoopsObjectHandler.php.

References Xoops\getInstance().

Here is the call graph for this function:

Member Function Documentation

Xoops\Core\Kernel\XoopsObjectHandler::create ( )

creates a new object

Returns
XoopsObject XoopsObject

Definition at line 57 of file XoopsObjectHandler.php.

Referenced by XoopsGroupPermHandler\addRight(), Xoops\Core\Kernel\XoopsPersistableObjectHandler\get(), and NotificationsNotificationHandler\subscribe().

Here is the caller graph for this function:

Xoops\Core\Kernel\XoopsObjectHandler::delete ( XoopsObject  $object,
  $force = true 
)

delete object from database

Parameters
XoopsObject$objectobject to delete
bool$forceuse force
Returns
boolean|null FALSE if failed.

Definition at line 92 of file XoopsObjectHandler.php.

Xoops\Core\Kernel\XoopsObjectHandler::get (   $int_id)

gets a value object

Parameters
int$int_idid
Returns
mixed

Definition at line 68 of file XoopsObjectHandler.php.

Xoops\Core\Kernel\XoopsObjectHandler::insert ( XoopsObject  $object,
  $force = true 
)

insert/update object

Parameters
XoopsObject$objectobject to insert
bool$forceuse force
Returns
mixed

Definition at line 80 of file XoopsObjectHandler.php.

Member Data Documentation

Xoops\Core\Kernel\XoopsObjectHandler::$db2

Definition at line 37 of file XoopsObjectHandler.php.

Referenced by XoopsPersistableObjectHandler\__construct().


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