Home « Server software «
Documentation: comments/layout_comments_as_daily.php
Class Layout_comments_as_daily extends Layout_interface - Layout comments as a daily weblog
Post of new comments may have been explicitly prevented in anchor (option 'no_comments
').
Otherwise commands to post new comments are added if the surfer has been authenticated,
or if anonymous comments are allowed (parameter 'users_with_anonymous_comments
' set to 'Y'),
of if teasers have been enabled (parameter 'users_without_teasers
' not set to 'Y').
Both global parameters are set in users/configure.php).This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
items_per_page() - The preferred number of items for this layout
function items_per_page()
- returns int the optimised count of items for this layout
Voir aussi:
layout() - List comments as notes in a discussion thread
function &layout(&$result, $capability='?')
- &$result - resource the SQL result
- $capability='?' - string '?' or 'A', to support editors and to impersonate associates, where applicable
- returns string the rendered text
Voir aussi:
comments/layout_comments_as_daily.php - Number of the first comment to display
set_offset()
function set_offset($offset)
- $offset -