Function Hook_rss_cns_members->run
Definitions
sources/hooks/systems/rss/cns_members.php
- Run function for RSS hooks.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $_filters | string | No | No | required parameter | N/A | N/A | A list of categories we accept from |
| $cutoff | TIME | No | No | required parameter | N/A | N/A | Cutoff time, before which we do not show results from |
| $prefix | string | No | No | required parameter | RSS_ ATOM_ | N/A | Prefix that represents the template set we use |
| $date_string | string | No | No | required parameter | N/A | N/A | The standard format of date to use for the syndication type represented in the prefix |
| $max | integer | No | No | required parameter | N/A | N/A | The maximum number of entries to return, ordering by date |
Returns
- A pair: The main syndication section, and a title (null: error)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Run function for RSS hooks.
*
* @param string $_filters A list of categories we accept from
* @param TIME $cutoff Cutoff time, before which we do not show results from
* @param string $prefix Prefix that represents the template set we use
* @set RSS_ ATOM_
* @param string $date_string The standard format of date to use for the syndication type represented in the prefix
* @param integer $max The maximum number of entries to return, ordering by date
* @return ?array A pair: The main syndication section, and a title (null: error)
*/
public function run(string $_filters, int $cutoff, string $prefix, string $date_string, int $max) : ?array
* Run function for RSS hooks.
*
* @param string $_filters A list of categories we accept from
* @param TIME $cutoff Cutoff time, before which we do not show results from
* @param string $prefix Prefix that represents the template set we use
* @set RSS_ ATOM_
* @param string $date_string The standard format of date to use for the syndication type represented in the prefix
* @param integer $max The maximum number of entries to return, ordering by date
* @return ?array A pair: The main syndication section, and a title (null: error)
*/
public function run(string $_filters, int $cutoff, string $prefix, string $date_string, int $max) : ?array

