Function __global->cns_get_pp_rows
Definitions
sources/cns_notifications.php
- Get the personal post rows for the current member.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $limit | ?integer | No | No | 5 | N/A | N/A | The maximum number of rows to get (gets newest first) (null: no limit) |
| $unread | boolean | No | No | True | N/A | N/A | Whether to only get unread ones |
| $include_inline | boolean | No | No | True | N/A | N/A | Whether to include inline personal posts |
| $time_barrier | ?TIME | No | No | Null | N/A | N/A | Only since this date (null: no limit) |
Returns
- The personal post rows (with corresponding topic details)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the personal post rows for the current member.
*
* @param ?integer $limit The maximum number of rows to get (gets newest first) (null: no limit)
* @param boolean $unread Whether to only get unread ones
* @param boolean $include_inline Whether to include inline personal posts
* @param ?TIME $time_barrier Only since this date (null: no limit)
* @return array The personal post rows (with corresponding topic details)
*/
function cns_get_pp_rows(?int $limit = 5, bool $unread = true, bool $include_inline = true, ?int $time_barrier = null) : array
* Get the personal post rows for the current member.
*
* @param ?integer $limit The maximum number of rows to get (gets newest first) (null: no limit)
* @param boolean $unread Whether to only get unread ones
* @param boolean $include_inline Whether to include inline personal posts
* @param ?TIME $time_barrier Only since this date (null: no limit)
* @return array The personal post rows (with corresponding topic details)
*/
function cns_get_pp_rows(?int $limit = 5, bool $unread = true, bool $include_inline = true, ?int $time_barrier = null) : array

