Function CMS_Topic->set_level_has_adjacent_sibling
Definitions
sources/topics.php
- Sets a level_has_adjacent_sibling property on posts, which is a single-dimensional array.with a boolean value for every parent post and the post itself containing whether it has an adjacent sibling.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
&$posts | array | Yes | No | required parameter | N/A | N/A | An array of posts |
$level_has_adjacent_sibling | array | No | No | [] | N/A | N/A | For internal use only |
Preview
Code (PHP)
/**
* Sets a level_has_adjacent_sibling property on posts, which is a single-dimensional array.with a boolean value for every parent post and the post itself containing whether it has an adjacent sibling.
*
* @param array $posts An array of posts
* @param array $level_has_adjacent_sibling For internal use only
*/
protected function set_level_has_adjacent_sibling(array &$posts, array $level_has_adjacent_sibling = [])
* Sets a level_has_adjacent_sibling property on posts, which is a single-dimensional array.with a boolean value for every parent post and the post itself containing whether it has an adjacent sibling.
*
* @param array $posts An array of posts
* @param array $level_has_adjacent_sibling For internal use only
*/
protected function set_level_has_adjacent_sibling(array &$posts, array $level_has_adjacent_sibling = [])