[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the Comment class. This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. See also {@link http://sourceforge.net/projects/evocms/}.
Author: | blueyed: Daniel HAHLER. |
Author: | fplanque: Francois PLANQUE |
Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}. |
License: | http://b2evolution.net/about/license.html GNU General Public License (GPL) |
Version: | $Id: _comment.class.php,v 1.4 2007/11/03 04:56:03 fplanque Exp $ |
Poids: | 1365 lignes (37 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Comment:: (39 méthodes):
Comment()
get()
set()
set_Item()
set_author_User()
set_spam_karma()
get_anchor()
anchor()
get_author_name()
get_author_email()
get_author_url()
author()
author_ip()
author_email()
author_url()
spam_karma()
edit_link()
delete_link()
get_deprecate_link()
deprecate_link()
get_publish_link()
publish_link()
msgform_link()
get_permanent_url()
permanent_url()
get_permanent_link()
permanent_link()
get_content()
content()
date()
time()
rating()
rating_input()
rating_none_input()
status()
send_email_notifications()
dbupdate()
dbinsert()
dbdelete()
Comment( $db_row = NULL ) X-Ref |
Constructor |
get( $parname ) X-Ref |
Pas de description |
set( $parname, $parvalue ) X-Ref |
Set param value param: string parameter name param: mixed parameter value return: boolean true, if a value has been set; false if it has not changed |
set_Item( & $Item ) X-Ref |
Set Item this comment relates to param: Item |
set_author_User( & $author_User ) X-Ref |
Set author User of this comment |
set_spam_karma( $spam_karma ) X-Ref |
Set the spam karma, as a number. param: integer Spam karma (-100 - 100) |
get_anchor() X-Ref |
Get the anchor-ID of the comment return: string |
anchor() X-Ref |
Template function: display anchor for permalinks to refer to |
get_author_name() X-Ref |
Get the comment author's name. return: string |
get_author_email() X-Ref |
Get the EMail of the comment's author. return: string |
get_author_url() X-Ref |
Get the URL of the comment's author. return: string |
author( $before = '', $after = '$format = 'htmlbody', $makelink = false ) X-Ref |
Template function: display author of comment param: string String to display before author name if not a user param: string String to display after author name if not a user param: string String to display before author name if he's a user param: string String to display after author name if he's a user param: string Output format, see {@link format_to_output()} param: boolean true for link, false if you want NO html link |
author_ip( $before='', $after='' ) X-Ref |
Template function: display comment's author's IP param: string String to display before IP, if IP exists param: string String to display after IP, if IP exists |
author_email( $linktext='', $before='', $after='', $makelink = true ) X-Ref |
Template function: display link to comment author's provided email param: string String to display for link: leave empty to display email param: string String to display before email, if email exists param: string String to display after email, if email exists param: boolean false if you want NO html link |
author_url( $linktext='', $before='', $after='', $makelink = true ) X-Ref |
Template function: display link to comment author's provided URL param: string String to display for link: leave empty to display URL param: string String to display before link, if link exists param: string String to display after link, if link exists param: boolean false if you want NO html link return: boolean true if URL has been displayed |
spam_karma( $template = '%s%', $template_unknown = NULL ) X-Ref |
Template function: display spam karma of the comment (in percent) "%s" gets replaced by the karma value param: string Template string to display, if we have a karma value param: string Template string to display, if we have no karma value (pre-Phoenix) |
edit_link( $before = ' ', $after = ' ', $text = ') X-Ref |
Provide link to edit a comment if user has edit rights param: string to display before link param: string to display after link param: string link text param: string link title param: string class name return: boolean |
delete_link( $before = ' ', $after = ' ', $text = ') X-Ref |
Displays button for deleeing the Comment if user has proper rights param: string to display before link param: string to display after link param: string link text param: string link title param: string class name param: boolean true to make this a button instead of a link |
get_deprecate_link( $before = ' ', $after = ' ', $text = ') X-Ref |
Provide link to deprecate a comment if user has edit rights param: string to display before link param: string to display after link param: string link text param: string link title param: string class name param: string glue between url params param: boolean save context? |
deprecate_link( $before = ' ', $after = ' ', $text = ') X-Ref |
Display link to deprecate a comment if user has edit rights param: string to display before link param: string to display after link param: string link text param: string link title param: string class name param: string glue between url params param: boolean save context? |
get_publish_link( $before = ' ', $after = ' ', $text = ') X-Ref |
Provide link to publish a comment if user has edit rights param: string to display before link param: string to display after link param: string link text param: string link title param: string class name param: string glue between url params param: boolean save context? |
publish_link( $before = ' ', $after = ' ', $text = ') X-Ref |
Display link to publish a comment if user has edit rights param: string to display before link param: string to display after link param: string link text param: string link title param: string class name param: string glue between url params param: boolean save context? |
msgform_link( $form_url, $before = ' ', $after = ' ', $text = ') X-Ref |
Provide link to message form for this comment's author param: string url of the message form param: string to display before link param: string to display after link param: string link text param: string link title param: string class name |
get_permanent_url() X-Ref |
Generate permalink to this comment. Note: This actually only returns the URL, to get a real link, use Comment::get_permanent_link() |
permanent_url( $mode = '', $blogurl='' ) X-Ref |
Template function: display permalink to this comment Note: This actually only returns the URL, to get a real link, use Comment::permanent_link() param: string 'urltitle', 'pid', 'archive#id' or 'archive#title' param: string url to use |
get_permanent_link( $text = ') X-Ref |
Returns a permalink link to the Comment Note: If you only want the permalink URL, use Comment::get_permanent_url() param: string link text or special value: '#', '#icon#', '#text#' param: string link title param: string class name |
permanent_link( $text = ') X-Ref |
Displays a permalink link to the Comment Note: If you only want the permalink URL, use Comment::permanent_url() param: string link text param: string link title param: string class name |
get_content( $format = 'htmlbody' ) X-Ref |
Template function: get content of comment param: string Output format, see {@link format_to_output()} return: string |
content( $format = 'htmlbody' ) X-Ref |
Template function: display content of comment param: string Output format, see {@link format_to_output()} |
date( $format='', $useGM = false ) X-Ref |
Template function: display date (datetime) of comment param: string date/time format: leave empty to use locale default date format param: boolean true if you want GMT |
time( $format='', $useGM = false ) X-Ref |
Template function: display time (datetime) of comment param: string date/time format: leave empty to use locale default time format param: boolean true if you want GMT |
rating( $params = array() X-Ref |
Template tag: display rating |
rating_input( $params = array() X-Ref |
Rating input |
rating_none_input( $params = array() X-Ref |
Rating reset input |
status( $format = 'htmlbody' ) X-Ref |
Template function: display status of comment Statuses: - published - deprecated - protected - private - draft param: string Output format, see {@link format_to_output()} |
send_email_notifications() X-Ref |
Send email notifications to subscribed users: |
dbupdate() X-Ref |
Trigger event AfterCommentUpdate after calling parent method. return: boolean true on success |
dbinsert() X-Ref |
Get karma and set it before adding the Comment to DB. return: boolean true on success, false if it did not get inserted |
dbdelete() X-Ref |
Trigger event AfterCommentDelete after calling parent method. return: boolean true on success |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |