[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/class/ -> commentrenderer.php (sommaire)

(pas de description)

Poids: 388 lignes (18 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

XoopsCommentRenderer:: (11 méthodes):
  XoopsCommentRenderer()
  instance()
  setComments()
  renderFlatView()
  renderThreadView()
  _renderThreadReplies()
  renderNestView()
  _renderNestReplies()
  _getPosterName()
  _getPosterArray()
  _getTitleIcon()


Classe: XoopsCommentRenderer  - X-Ref

Display comments

XoopsCommentRenderer(&$tpl, $use_icons = true, $do_iconcheck = false)   X-Ref
Constructor

param: object  &$tpl   
param: boolean $use_icons
param: boolean $do_iconcheck

instance(&$tpl, $use_icons = true, $do_iconcheck = false)   X-Ref
Access the only instance of this class

param: object  $tpl        reference to a {@link Smarty} object
param: boolean $use_icons
param: boolean $do_iconcheck
return:

setComments(&$comments_arr)   X-Ref
Accessor

param: object  &$comments_arr  array of {@link XoopsComment} objects

renderFlatView($admin_view = false)   X-Ref
Render the comments in flat view

param: boolean $admin_view

renderThreadView($comment_id = 0, $admin_view = false, $show_nav = true)   X-Ref
Render the comments in thread view

This method calls itself recursively

param: integer $comment_id   Should be "0" when called by client
param: boolean $admin_view
param: boolean $show_nav

_renderThreadReplies(&$thread, $key, &$replies, $prefix, $admin_view, $depth = 0, $current_prefix = '')   X-Ref
Render replies to a thread

param: array   &$thread
param: int     $key
param: array   $replies
param: string  $prefix
param: bool    $admin_view
param: integer $depth
param: string  $current_prefix

renderNestView($comment_id = 0, $admin_view = false)   X-Ref
Render comments in nested view

Danger: Recursive!

param: integer $comment_id   Always "0" when called by client.
param: boolean $admin_view

_renderNestReplies(&$thread, $key, &$replies, $prefix, $admin_view, $depth = 0)   X-Ref
Render replies in nested view

param: array   $thread
param: int     $key
param: array   $replies
param: string  $prefix
param: bool    $admin_view
param: integer $depth

_getPosterName($poster_id)   X-Ref
Get the name of the poster

param: int $poster_id
return: string

_getPosterArray($poster_id)   X-Ref
Get an array with info about the poster

param: int $poster_id
return: array

_getTitleIcon($icon_image)   X-Ref
Get the IMG tag for the title icon

param: string  $icon_image
return: string  HTML IMG tag



Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics