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

Public Member Functions

 __construct (&$db)
 
 insert (&$comment, $force=false)
 
 delete (&$comment, $force=false)
 
 getModuleIds ()
 
- Public Member Functions inherited from XoopsObjectGenericHandler
create ($isNew=true)
 
get ($id)
 
getObjects ($criteria=null, $limit=null, $start=null, $id_as_key=false)
 
 getIdList ($criteria=null, $limit=null, $start=null)
 
 getCount ($criteria=null)
 
 _getCount ($sql=null)
 
 _insert (&$obj)
 
 _update (&$obj)
 
 _makeVars4sql (&$obj)
 
 _makeCriteria4sql ($criteria)
 
 _makeCriteriaElement4sql ($criteria, &$obj)
 
 _escapeValue ($value, $type)
 
 deleteAll ($criteria, $force=false)
 
 getDirname ()
 
 getDataname ()
 
 _callDelegate ( $type, &$obj)
 
- Public Member Functions inherited from XoopsObjectHandler
create ()
 
 insert (&$object)
 
 delete (&$object)
 

Data Fields

 $mTable = 'xoopscomments'
 
 $mPrimary = 'com_id'
 
 $mClass = 'LegacyCommentObject'
 
 $mUpdateSuccess
 
 $mDeleteSuccess
 
- Data Fields inherited from XoopsObjectGenericHandler
 $mTable = null
 
 $mPrimary = null
 
 $mClass = null
 
 $mDirname = null
 
 $mDataname = null
 
 $_mDummyObj = null
 
- Data Fields inherited from XoopsObjectHandler
 $db
 

Detailed Description

Definition at line 86 of file comment.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( & $db)

called from child classes only

Parameters
object$dbreference to the XoopsDatabase object @access protected

Reimplemented from XoopsObjectGenericHandler.

Definition at line 102 of file comment.php.

Member Function Documentation

◆ delete()

delete ( & $comment,
$force = false )

Delete $comment and childlen of $comment.

Parameters
$comment
bool$force
Returns
bool

Reimplemented from XoopsObjectGenericHandler.

Definition at line 126 of file comment.php.

◆ getModuleIds()

getModuleIds ( )

Return array of module id that comments are written.

Returns
array

Definition at line 145 of file comment.php.

◆ insert()

insert ( & $comment,
$force = false )

Reimplemented from XoopsObjectGenericHandler.

Definition at line 110 of file comment.php.

Field Documentation

◆ $mClass

$mClass = 'LegacyCommentObject'

Definition at line 90 of file comment.php.

◆ $mDeleteSuccess

$mDeleteSuccess

Definition at line 100 of file comment.php.

◆ $mPrimary

$mPrimary = 'com_id'

Definition at line 89 of file comment.php.

◆ $mTable

$mTable = 'xoopscomments'

Definition at line 88 of file comment.php.

◆ $mUpdateSuccess

$mUpdateSuccess

Definition at line 95 of file comment.php.


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