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

Public Member Functions

 delete ()
 
 getAllComments ($criteria=array(), $asobject=true, $orderby="comment_id ASC", $limit=0, $start=0)
 
 getCommentTree ()
 
 load ($id)
 
 printNavBar ($item_id, $mode="flat", $order=1)
 
 showThreadFoot ()
 
 showThreadHead ()
 
 showThreadPost ($order, $mode, $adminview=0, $color_num=1)
 
 showTreeFoot ()
 
 showTreeHead ($width="100%")
 
 showTreeItem ($order, $mode, $color_num)
 
 store ()
 
 XoopsComments ($ctable, $id=null)
 
- Public Member Functions inherited from XoopsObject
 _loadFilters ()
 
 assignVar ($key, $value)
 
 assignVars ($var_arr)
 
 cleanVars ()
 
 destoryVars ($var)
 
 getErrors ()
 
 getHtmlErrors ()
 
 getValues ($keys=null, $format= 's', $maxDepth=1)
 
 getVar ($key, $format= 's')
 
getVars ()
 
 initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '', $enumerations= '')
 
 isDirty ()
 
 isNew ()
 
 loadFilters ($method)
 
 registerFilter ($filtername)
 
 setDirty ()
 
 setErrors ($err_str)
 
 setFormVars ($var_arr=null, $pref= 'xo_', $not_gpc=false)
 
 setNew ()
 
 setVar ($key, $value, $not_gpc=false)
 
 setVars ($var_arr, $not_gpc=false)
 
 toArray ()
 
 unsetDirty ()
 
 unsetNew ()
 
xoopsClone ()
 
 XoopsObject ()
 

Public Attributes

 $ctable
 
 $db
 
- Public Attributes inherited from XoopsObject
 $_errors = array()
 
 $_filters = array()
 
 $_isDirty = false
 
 $_isNew = false
 
 $cleanVars = array()
 
 $vars = array()
 

Detailed Description

Definition at line 39 of file xoopscomments.php.

Member Function Documentation

XoopsComments::delete ( )

Enter description here...

Returns
int

Definition at line 128 of file xoopscomments.php.

References $i, $result, and $sql.

XoopsComments::getAllComments (   $criteria = array(),
  $asobject = true,
  $orderby = "comment_id ASC",
  $limit = 0,
  $start = 0 
)

Get All Comments using criteria match

Parameters
array$criteria
bool$asobject
string$orderby
int$limit
int$start
Returns
array

Definition at line 182 of file xoopscomments.php.

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

XoopsComments::getCommentTree ( )

Get Comments Tree

Returns
unknown

Definition at line 161 of file xoopscomments.php.

References $ret.

XoopsComments::load (   $id)

Load Comment by ID

Parameters
int$id

Definition at line 78 of file xoopscomments.php.

References $sql.

XoopsComments::printNavBar (   $item_id,
  $mode = "flat",
  $order = 1 
)

Enter printNavBar

Parameters
int$item_id
stringtype $mode
inttype $order

Definition at line 217 of file xoopscomments.php.

References $_SERVER, $xoopsConfig, $xoopsUser, _CM_POSTCOMMENT, _CM_REFRESH, _FLAT, _NEWESTFIRST, _NOCOMMENTS, _OLDESTFIRST, and _THREADED.

XoopsComments::showThreadFoot ( )

Show Thread Footer

Definition at line 370 of file xoopscomments.php.

References closeThread().

Here is the call graph for this function:

XoopsComments::showThreadHead ( )

Show Thread

Definition at line 254 of file xoopscomments.php.

References openThread().

Here is the call graph for this function:

XoopsComments::showThreadPost (   $order,
  $mode,
  $adminview = 0,
  $color_num = 1 
)

Enter description here...

Parameters
string$order
string$mode
int$adminview
int$color_num

Definition at line 267 of file xoopscomments.php.

References $poster, $xoopsConfig, $xoopsUser, _ADD, _CM_FROM, _CM_JOINED, _CM_POSTS, _DELETE, _EDIT, _PROFILE, _REPLY, _SENDEMAILTO, _SENDPMTO, _VISITWEBSITE, formatTimestamp(), showThread(), and XOOPS_UPLOAD_URL.

Here is the call graph for this function:

XoopsComments::showTreeFoot ( )

Show Thread Foot

Definition at line 413 of file xoopscomments.php.

XoopsComments::showTreeHead (   $width = "100%")

Show Thread Head

Parameters
int$width

Definition at line 380 of file xoopscomments.php.

References _CM_POSTED, _CM_POSTER, _CM_REPLIES, and _CM_TITLE.

XoopsComments::showTreeItem (   $order,
  $mode,
  $color_num 
)

Show Tree Items

Parameters
string$order
string$mode
int$color_num

Definition at line 392 of file xoopscomments.php.

References $_SERVER, $date, $icon, formatTimestamp(), and XoopsUser\getUnameFromId().

Here is the call graph for this function:

XoopsComments::store ( )

Save Comment

Returns
int

Definition at line 91 of file xoopscomments.php.

References $comment, $icon, $result, $sql, and $user_id.

XoopsComments::XoopsComments (   $ctable,
  $id = null 
)

Definition at line 44 of file xoopscomments.php.

References XoopsDatabaseFactory\getDatabaseConnection(), XOBJ_DTYPE_INT, XOBJ_DTYPE_OTHER, XOBJ_DTYPE_TXTAREA, and XOBJ_DTYPE_TXTBOX.

Here is the call graph for this function:

Member Data Documentation

XoopsComments::$ctable

Definition at line 41 of file xoopscomments.php.

XoopsComments::$db

Definition at line 42 of file xoopscomments.php.


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