Function Block_main_news->assemble_template_map
Definitions
sources/blocks/main_news.php
- Generate a template-ready map for a news article.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$myrow | array | No | No | required parameter | N/A | N/A | The article row |
$optimise | boolean | No | No | required parameter | N/A | N/A | Whether to optimise the tempcode-output |
$show_in_full | boolean | No | No | required parameter | N/A | N/A | Whether to show the article in full (rather than a summary) |
$show_author | boolean | No | No | required parameter | N/A | N/A | Whether to show the author |
$prop_url | array | No | No | required parameter | N/A | N/A | Shared URL parameters |
$allow_comments_shared | boolean | No | No | required parameter | N/A | N/A | Whether comments are allowed |
$base_url | URLPATH | No | No | required parameter | N/A | N/A | Base URL |
$attach_to_url_filter | boolean | No | No | required parameter | N/A | N/A | Whether to propagate Filtercode in URLs |
$zone | string | No | No | required parameter | N/A | N/A | Zone |
$blogs | integer | No | No | required parameter | N/A | N/A | Whether we are showing blogs (1=only, 0=no, -1=don't care) |
Returns
- The template map
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Generate a template-ready map for a news article.
*
* @param array $myrow The article row
* @param boolean $optimise Whether to optimise the tempcode-output
* @param boolean $show_in_full Whether to show the article in full (rather than a summary)
* @param boolean $show_author Whether to show the author
* @param array $prop_url Shared URL parameters
* @param boolean $allow_comments_shared Whether comments are allowed
* @param URLPATH $base_url Base URL
* @param boolean $attach_to_url_filter Whether to propagate Filtercode in URLs
* @param string $zone Zone
* @param integer $blogs Whether we are showing blogs (1=only, 0=no, -1=don't care)
* @return array The template map
*/
protected function assemble_template_map(array $myrow, bool $optimise, bool $show_in_full, bool $show_author, array $prop_url, bool $allow_comments_shared, string $base_url, bool $attach_to_url_filter, string $zone, int $blogs) : array
* Generate a template-ready map for a news article.
*
* @param array $myrow The article row
* @param boolean $optimise Whether to optimise the tempcode-output
* @param boolean $show_in_full Whether to show the article in full (rather than a summary)
* @param boolean $show_author Whether to show the author
* @param array $prop_url Shared URL parameters
* @param boolean $allow_comments_shared Whether comments are allowed
* @param URLPATH $base_url Base URL
* @param boolean $attach_to_url_filter Whether to propagate Filtercode in URLs
* @param string $zone Zone
* @param integer $blogs Whether we are showing blogs (1=only, 0=no, -1=don't care)
* @return array The template map
*/
protected function assemble_template_map(array $myrow, bool $optimise, bool $show_in_full, bool $show_author, array $prop_url, bool $allow_comments_shared, string $base_url, bool $attach_to_url_filter, string $zone, int $blogs) : array