Function __global->load_news_cat_rows
Definitions
sources/news.php
- Load up some news category rows. We do this here because these are consumed in many areas of the software so need some run-time caching.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $sql | string | No | No | required parameter | N/A | N/A | SQL defining what rows to load |
Returns
- List of all rows cached (not just the ones loaded now)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Load up some news category rows. We do this here because these are consumed in many areas of the software so need some run-time caching.
*
* @param string $sql SQL defining what rows to load
* @return array List of all rows cached (not just the ones loaded now)
*/
function load_news_cat_rows(string $sql) : array
* Load up some news category rows. We do this here because these are consumed in many areas of the software so need some run-time caching.
*
* @param string $sql SQL defining what rows to load
* @return array List of all rows cached (not just the ones loaded now)
*/
function load_news_cat_rows(string $sql) : array

