Function __global->create_selection_list_news
Definitions
sources/news.php
- Get a nice formatted HTML list of news.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $it | ?AUTO_LINK | No | No | required parameter | N/A | N/A | The selected news entry (null: none) |
| $only_owned | ?MEMBER | No | No | Null | N/A | N/A | Limit news to those submitted by this member (null: show all) |
| $editable_filter | boolean | No | No | False | N/A | N/A | Whether to only show for what may be edited by the current member |
| $only_in_blog | boolean | No | No | False | N/A | N/A | Whether to only show blog posts |
Returns
- The list
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a nice formatted HTML list of news.
*
* @param ?AUTO_LINK $it The selected news entry (null: none)
* @param ?MEMBER $only_owned Limit news to those submitted by this member (null: show all)
* @param boolean $editable_filter Whether to only show for what may be edited by the current member
* @param boolean $only_in_blog Whether to only show blog posts
* @return Tempcode The list
*/
function create_selection_list_news(?int $it, ?int $only_owned = null, bool $editable_filter = false, bool $only_in_blog = false) : object
* Get a nice formatted HTML list of news.
*
* @param ?AUTO_LINK $it The selected news entry (null: none)
* @param ?MEMBER $only_owned Limit news to those submitted by this member (null: show all)
* @param boolean $editable_filter Whether to only show for what may be edited by the current member
* @param boolean $only_in_blog Whether to only show blog posts
* @return Tempcode The list
*/
function create_selection_list_news(?int $it, ?int $only_owned = null, bool $editable_filter = false, bool $only_in_blog = false) : object
