IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • BQQApi
  • Comment
  • IM
  • IMFactory
  • IMQq
  • IMRtx

Class Comment

CWidget
Extended by application\modules\message\core\Comment

Direct known subclasses

application\modules\article\core\ArticleComment, application\modules\diary\widgets\DiaryComment, application\modules\weibo\core\WeiboComment

Namespace: application\modules\message\core
Located at system/modules/message/core/Comment.php

Methods summary

public
# setModule( string $moduleName = '' )

设置当前评论widget所指向的模块名称

设置当前评论widget所指向的模块名称

Parameters

$moduleName
public string
# getModule( )

获得当前评论widget所指向的模块名称

获得当前评论widget所指向的模块名称

Returns

string
public
# setTable( string $tableName = '' )

设置当前评论widget所指向的资源表名

设置当前评论widget所指向的资源表名

Parameters

$tableName
public string
# getTable( )

获得当前评论widget所指向的资源表名

获得当前评论widget所指向的资源表名

Returns

string
public
# setAttributes( array $attributes = array() )

设置当前的评论widget的其他数据属性,详情请看comment表

设置当前的评论widget的其他数据属性,详情请看comment表

Parameters

$attributes
键值对应的数组
public mixed
# getAttributes( mixed $name = null )

返回当前评论widget的其他属性

返回当前评论widget的其他属性

Parameters

$name
是否有指定详细的其他属性键

Returns

mixed
返回当个指定的键值或整个attributes
public
# setParseView( string $type = 'comment', string $view = application\modules\message\core\Comment::COMMENT_PARSE_VIEW, string $index = 'list' )

设置渲染视图

设置渲染视图

Parameters

$type
视图类型
$view
视图路径 (最好是全称)
$index
视图的索引
public string
# getParseView( string $type, string $index = 'list' )

获取解析视图

获取解析视图

Parameters

$type
视图类型
$index
视图索引

Returns

string
public integer
# getCommentCount( )

Returns

integer
public array
# getCommentList( )

通用获取评论列表方法

通用获取评论列表方法

Returns

array
public
# addComment( )

通用添加评论方法 $data = array( 'uid','table','content','rowid', 'module','moduleuid' )

通用添加评论方法 $data = array( 'uid','table','content','rowid', 'module','moduleuid' )

public boolean
# delComment( )

删除评论

删除评论

Returns

boolean
true or false
protected array
# getCommentMap( )

Returns

array
protected string
# parseComment( array $data )

解析评论视图

解析评论视图

Parameters

$data

Returns

string
protected
# afterAdd( array $data, array $sourceInfo )

扩展方法,应由子widget来实现

扩展方法,应由子widget来实现

Parameters

$data
$sourceInfo
protected boolean
# beforeDelComment( array $comment, integer & $cid )

扩展方法,删除评论前预处理

扩展方法,删除评论前预处理

Parameters

$comment
待删除的评论数组
$cid

Returns

boolean

Constants summary

string SOURCE_TABLE
# 'Feed'
string REPLY_LIST_VIEW
# 'application.modules.message.views.comment.loadReply'
string COMMENT_LIST_VIEW
# 'application.modules.message.views.comment.loadComment'
string COMMENT_PARSE_VIEW
# 'application.modules.message.views.comment.parseComment'
string REPLY_PARSE_VIEW
# 'application.modules.message.views.comment.parseReply'
IBOS open source API documentation generated by ApiGen