[ Index ] |
|
Code source de Serendipity 1.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 777 lignes (33 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
serendipity_rememberComment() X-Ref |
Store the personal details of a commenting user in a cookie (or delete that cookie) return: null |
serendipity_rememberCommentDetails($details) X-Ref |
Store all options of an array within a permanent cookie param: array input array return: null |
serendipity_forgetCommentDetails($keys) X-Ref |
Purge stored options from a permanent cookie LONG param: array Array of key names that shall be deleted inside cookies return: null |
serendipity_displayCommentForm($id, $url = '', $comments = NULL, $data = NULL, $showToolbar = true, $moderate_comments = true, $entry = null) X-Ref |
Display the Comment form for entries param: int The EntryID to show the commentform for param: string The URL that acts as the target of the HTML Form param: array Array of existing comments to this entry param: array Array of personal details data (i.e. from Cookie or POST input) param: boolean Toggle whether to show extended options of the comment form param: boolean Toggle whether comments to this entry are allowed param: array The data of the entry that the comment is referring to return: null |
serendipity_fetchComments($id, $limit = null, $order = '', $showAll = false, $type = 'NORMAL', $where = '') X-Ref |
Fetch an array of comments to a specific entry id param: int The Entry ID to fetch comments for param: int How many comments to fetch (empty: all) param: string How shall comments be ordered (ASC|DESC) param: boolean Shall non-approved comments be displayed? param: string Comment type to fetch return: array The SQL result of comments |
serendipity_generateCommentList($id, $comments = NULL, $selected = 0, $parent = 0, $level = 0, $indent = '') X-Ref |
Create a HTML SELECT dropdown field which represents all hierarchical comments param: int The entry ID to show comments for param: array The existing comments for this entry param: int The ID of the comment that is being referred to (last selection) param: int The parent ID of the last comment [for recursive usage] param: int The current nesting/hierarchy level [for recursive usage] param: string The HTML indention string that gets prepended to a comment [for recursive usage] return: string The HTML SELECT code |
serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace = null, $smarty_block = 'COMMENTS', $smarty_file = 'comments.tpl') X-Ref |
Print a list of comments to an entry param: array The list of comments to display param: int The parentID of a comment to show. Can contain the constant for VIEWMODE_THREADED/LINEAR. [recursive usage] param: int The current nesting depth of a comment [recursive usage] param: string A string repesenting the actual comment (1.1.2.1) return: string The HTML construct of all comments |
serendipity_printCommentsByAuthor() X-Ref |
Fetches and prints a listing of comments by author |
serendipity_deleteComment($id, $entry_id, $type='comments') X-Ref |
Delete a specific comment param: int The ID of the comment to delete param: int The ID of the entry the comment belongs to [safety] param: string The type of a comment (comments/trackback) return: boolean Return whether the action was successful) |
serendipity_allowCommentsToggle($entry_id, $switch = 'disable') X-Ref |
Toggle whether an entry allows comments param: int The ID of the entry where the switch shall be toggled param: string Whether the entry shall be opened or closed for comments return: null |
serendipity_approveComment($cid, $entry_id, $force = false) X-Ref |
Approve a comment LONG param: int The ID of the comment to approve param: int The ID of the entry a comment belongs to param: boolean Whether to force approving a comment despite of its current status return: boolean Success or failure |
serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source = 'internal') X-Ref |
Save a comment made by a visitor param: int The ID of an entry param: array An array that holds the input data from the visitor param: string The type of a comment (normal/trackback) param: string Where did a comment come from? (internal|trackback|plugin) return: boolean Returns true if the comment could be added |
serendipity_mailSubscribers($entry_id, $poster, $posterMail, $title, $fromEmail = 'none@example.com', $cid = null) X-Ref |
Send a mail to all subscribers of an entry about a new comment param: int The ID of the entry where a new comment has been made param: string The name of the latest poster to an entry param: string The email addre ssof the latest poster to an entry param: string The title of the entry param: string The mail address used to send emails from param: int The ID of the comment that has been made return: null |
serendipity_cancelSubscription($email, $entry_id) X-Ref |
Cancel a subscription to an entry param: string E-Mail address to cancel subscription param: int The entry ID to unsubscribe from return: int Return number of unsubscriptions |
serendipity_sendComment($comment_id, $to, $fromName, $fromEmail, $fromUrl, $id, $title, $comment, $type = 'NORMAL', $moderate_comment = false) X-Ref |
Send a comment notice to the admin/author of an entry param: int ID of the comment that has been made param: string Author's email address to send the mail to param: string The name of the sender param: string The URL of the sender param: int The ID of the entry that has been commented param: string The title of the entry that has been commented param: string The text of the comment param: string The type of the comment (normal|trackback) param: boolean Toggle Whether comments to this entry need approval return: boolean Return success of sending the mails |
Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |