Function ssi_queryPosts
This handles actually pulling post info. Called from other functions to eliminate duplication.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at SSI.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at SSI.php
string |
$query_where = '' |
The WHERE clause for the query |
array |
$query_where_params = array() |
An array of parameters for the WHERE clause |
integer |
$query_limit = 10 |
The maximum number of rows to return |
string |
$query_order = 'm.id_msg DESC' |
The ORDER BY clause for the query |
string |
$output_method = 'echo' |
The output method. If 'echo', displays the posts, otherwise returns an array of info about them. |
boolean |
$limit_body = false |
If true, will only show the first 384 characters of the post rather than all of it |
boolean|false |
$override_permissions = false |
Whether or not to ignore permissions. If true, will show all posts regardless of whether the user can actually see them |
|array
|
Displays the posts or returns an array of info about them, depending on output_method |