XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
commentModel Class Reference
Inheritance diagram for commentModel:
comment ModuleObject BaseObject

Public Member Functions

 init ()
 
 getCommentMenu ()
 
 isGranted ($comment_srl)
 
 getChildCommentCount ($comment_srl)
 
 getChildComments ($comment_srl)
 
 getComment ($comment_srl=0, $is_admin=FALSE, $columnList=array())
 
 getComments ($comment_srl_list, $columnList=array())
 
 getCommentCount ($document_srl)
 
 getCommentCountByDate ($date= '', $moduleSrlList=array())
 
 getCommentAllCount ($module_srl, $published=null)
 
 getDistinctModules ()
 
 getNewestCommentList ($obj, $columnList=array())
 
 getCommentList ($document_srl, $page=0, $is_admin=FALSE, $count=0)
 
 fixCommentList ($module_srl, $document_srl)
 
 _arrangeComment (&$comment_list, $list, $depth, $parent=NULL)
 
 getTotalCommentList ($obj, $columnList=array())
 
 getTotalCommentCount ($obj)
 
 getCommentConfig ($module_srl)
 
 getCommentVotedMemberList ()
 
 getSecretNameList ()
 
 getCommentCountByMemberSrl ($member_srl)
 
 getCommentListByMemberSrl ($member_srl, $columnList=array(), $page=0, $is_admin=FALSE, $count=0)
 
- Public Member Functions inherited from comment
 moduleInstall ()
 
 checkUpdate ()
 
 moduleUpdate ()
 
 recompileCache ()
 
- Public Member Functions inherited from ModuleObject
 setModule ($module)
 
 setModulePath ($path)
 
 setRedirectUrl ($url= './', $output=NULL)
 
 getRedirectUrl ()
 
 setMessage ($message= 'success', $type=NULL)
 
 setMessageType ($type)
 
 getMessageType ()
 
 setRefreshPage ()
 
 setAct ($act)
 
 setModuleInfo ($module_info, $xml_info)
 
 stop ($msg_code)
 
 setTemplateFile ($filename)
 
 getTemplateFile ()
 
 setTemplatePath ($path)
 
 getTemplatePath ()
 
 setEditedLayoutFile ($filename)
 
 getEditedLayoutFile ()
 
 setLayoutFile ($filename)
 
 getLayoutFile ()
 
 setLayoutPath ($path)
 
 getLayoutPath ($layout_name="", $layout_type="P")
 
 proc ()
 
- Public Member Functions inherited from BaseObject
 __construct ($error=0, $message= 'success')
 
 setError ($error=0)
 
 getError ()
 
 setHttpStatusCode ($code= '200')
 
 getHttpStatusCode ()
 
 setMessage ($message= 'success', $type=NULL)
 
 getMessage ()
 
 add ($key, $val)
 
 adds ($object)
 
 get ($key)
 
 gets ()
 
 getVariables ()
 
 getObjectVars ()
 
 toBool ()
 
 toBoolean ()
 

Additional Inherited Members

- Public Attributes inherited from ModuleObject
 $mid = NULL
 string to represent run-time instance of Module (XE Module) More...
 
 $module = NULL
 Class name of Xe Module that is identified by mid. More...
 
 $module_srl = NULL
 integer value to represent a run-time instance of Module (XE Module) More...
 
 $module_info = NULL
 an object containing the module information More...
 
 $origin_module_info = NULL
 
 $xml_info = NULL
 an object containing the module description extracted from XML file More...
 
 $module_path = NULL
 a path to directory where module source code resides More...
 
 $act = NULL
 a string value to contain the action name More...
 
 $template_path = NULL
 a path of directory where template files reside More...
 
 $template_file = NULL
 name of template file More...
 
 $layout_path = ''
 a path of directory where layout files reside More...
 
 $layout_file = ''
 name of layout file More...
 
 $edited_layout_file = ''
 name of temporary layout files that is modified in an admin mode More...
 
 $stop_proc = FALSE
 a flag to indicating whether to stop the execution of code. More...
 
 $module_config = NULL
 
 $ajaxRequestMethod = array('XMLRPC', 'JSON')
 
 $gzhandler_enable = TRUE
 
- Public Attributes inherited from BaseObject
 $error = 0
 
 $message = 'success'
 
 $variables = array()
 
 $httpStatusCode = NULL
 

Detailed Description

Definition at line 12 of file comment.model.php.

Member Function Documentation

commentModel::_arrangeComment ( $comment_list,
  $list,
  $depth,
  $parent = NULL 
)

Relocate comments in the hierarchical structure

Parameters
array$comment_list
array$list
int$depth
object$parent
Returns
void

Definition at line 646 of file comment.model.php.

commentModel::fixCommentList (   $module_srl,
  $document_srl 
)

Update a list of comments in corresponding with document_srl Take care of previously used data than GA version

Parameters
int$module_srl
int$document_srl
Returns
void

Definition at line 554 of file comment.model.php.

commentModel::getChildCommentCount (   $comment_srl)

Returns the number of child comments

Parameters
int$comment_srl
Returns
int

Definition at line 132 of file comment.model.php.

commentModel::getChildComments (   $comment_srl)

Returns the number of child comments

Parameters
int$comment_srl
Returns
int

Definition at line 145 of file comment.model.php.

commentModel::getComment (   $comment_srl = 0,
  $is_admin = FALSE,
  $columnList = array() 
)

Get the comment

Parameters
int$comment_srl
bool$is_admin
array$columnList
Returns
commentItem

Definition at line 160 of file comment.model.php.

commentModel::getCommentAllCount (   $module_srl,
  $published = null 
)

Get the total number of comments in corresponding with module_srl.

Parameters
int$module_srl
bool$published
Returns
int

Definition at line 297 of file comment.model.php.

commentModel::getCommentConfig (   $module_srl)

Return a configuration of comments for each module

Parameters
int$module_srl
Returns
object

Definition at line 945 of file comment.model.php.

commentModel::getCommentCount (   $document_srl)

Get the total number of comments in corresponding with document_srl.

Parameters
int$document_srl
Returns
int

Definition at line 229 of file comment.model.php.

commentModel::getCommentCountByDate (   $date = '',
  $moduleSrlList = array() 
)

Get the total number of comments in corresponding with document_srl.

Parameters
string$date
array$moduleSrlList
Returns
int

Definition at line 270 of file comment.model.php.

commentModel::getCommentCountByMemberSrl (   $member_srl)

Get the total number of comments in corresponding with member_srl.

Parameters
int$member_srl
Returns
int

Definition at line 1055 of file comment.model.php.

commentModel::getCommentList (   $document_srl,
  $page = 0,
  $is_admin = FALSE,
  $count = 0 
)

Get a comment list of the doc in corresponding woth document_srl.

Parameters
int$document_srl
int$page
bool$is_admin
int$count
Returns
object

Definition at line 449 of file comment.model.php.

commentModel::getCommentListByMemberSrl (   $member_srl,
  $columnList = array(),
  $page = 0,
  $is_admin = FALSE,
  $count = 0 
)

Get comment list of the doc in corresponding woth member_srl.

Parameters
int$member_srl
array$columnList
int$page
bool$is_admin
int$count
Returns
object

Definition at line 1073 of file comment.model.php.

commentModel::getCommentMenu ( )

display the pop-up menu of the post Print, scrap, vote-up(recommen), vote-down(non-recommend), report features added

Returns
void

Definition at line 29 of file comment.model.php.

commentModel::getComments (   $comment_srl_list,
  $columnList = array() 
)

Get the comment list(not paginating)

Parameters
string | array$comment_srl_list
array$columnList
Returns
array

Definition at line 177 of file comment.model.php.

commentModel::getCommentVotedMemberList ( )

Return a list of voting member

Returns
void

Definition at line 966 of file comment.model.php.

commentModel::getDistinctModules ( )

Get the module info without duplication

Returns
array

Definition at line 334 of file comment.model.php.

commentModel::getNewestCommentList (   $obj,
  $columnList = array() 
)

Get the comment in corresponding with mid.

Todo:
add commentItems to cache too
Parameters
object$obj
array$columnList
Returns
array

Definition at line 362 of file comment.model.php.

commentModel::getSecretNameList ( )

Return a secret status by secret field

Returns
array

Definition at line 1036 of file comment.model.php.

commentModel::getTotalCommentCount (   $obj)

Get all the comment count in time decending order(for administrators)

Parameters
object$obj
Returns
int

Definition at line 835 of file comment.model.php.

commentModel::getTotalCommentList (   $obj,
  $columnList = array() 
)

Get all the comments in time decending order(for administrators)

Parameters
object$obj
array$columnList
Returns
object

Definition at line 687 of file comment.model.php.

commentModel::init ( )

Initialization

Returns
void

Definition at line 19 of file comment.model.php.

commentModel::isGranted (   $comment_srl)

Check if you have a permission to comment_srl use only session information

Parameters
int$comment_srl
Returns
bool

Definition at line 122 of file comment.model.php.


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