b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _comment.funcs.php

Source Location: /blogs/inc/comments/model/_comment.funcs.php

Page Details

This file implements Comment handling functions.

This file is part of the b2evolution/evocms project - http://b2evolution.net/. See also http://sourceforge.net/projects/evocms/.

Author:  cafelog (team)
Author:  blueyed: Daniel HAHLER.
Author:  fplanque: Francois PLANQUE.
Version:  $Id: _comment.funcs.php,v 1.9 2010/02/28 23:38:40 fplanque Exp $
Copyright:  (c)2003-2010 by Francois PLANQUE - http://fplanque.net/. Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact.
Todo:  

implement CommentCache based on LinkCache

Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Functions
comments_number  [line 190]

void comments_number( [ $zero = '#'], [ $one = '#'], [ $more = '#'], [ $post_ID = NULL]  )

comments_number(-)

Parameters:
   $zero: 
   $one: 
   $more: 
   $post_ID: 

API Tags:
Deprecated:  deprecated by Item::feedback_link(), used in _edit_showposts.php


[ Top ]
Comment_get_by_ID  [line 155]

Comment Comment_get_by_ID( integer $comment_ID  )

Get a Comment by ID. Exits if the requested comment does not exist!

Parameters:
integer   $comment_ID: 


[ Top ]
echo_comment_buttons  [line 229]

void echo_comment_buttons( $Form $Form, $edited_Comment $edited_Comment  )

Create comment form submit buttons

Note: Publsih in only displayed when comment is in draft status

Parameters:
$Form   $Form: 
$edited_Comment   $edited_Comment: 


[ Top ]
echo_comment_publishbt_js  [line 263]

void echo_comment_publishbt_js( )

JS Behaviour: Output JavaScript code to dynamically show or hide the "Publish!" button depending on the selected comment status.

This function is used by the comment edit screen.



[ Top ]
generic_ctp_number  [line 43]

void generic_ctp_number( integer $post_id, [string $mode = 'comments'], [ $status = 'published']  )

Generic comments/trackbacks/pingbacks counting

Parameters:
integer   $post_id: 
string   $mode:  what to count
   $status: 

Information Tags:
Todo:  check this in a multiblog page...
Todo:  This should support visibility: at least in the default front office (_feedback.php), there should only the number of visible comments/trackbacks get used (Item::feedback_link()).

[ Top ]


Documentation generated on Sat, 06 Mar 2010 04:06:36 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).