summaryrefslogtreecommitdiff
path: root/includes/classes/LibertyXrefContent.php
blob: 7e1acddb0044b356d20fe066561c364ae5c99f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * @package liberty
 * @subpackage classes
 */

namespace Bitweaver\Liberty;

/**
 * Data container for all xref groups loaded for a specific content item.
 *
 * Produced by LibertyXrefType::loadContent(). Holds one LibertyXrefGroup per
 * display group (sort_order > 0) plus a synthetic 'history' group when expired
 * rows exist. Groups are keyed by x_group name.
 *
 * Packages that need to enrich rows (e.g. resolving contact titles from xref
 * content_ids) should override loadXrefInfo() in their own class, call the
 * parent, then walk $this->mXrefInfo->mGroups and mutate as needed.
 *
 * Template access: {foreach $gXrefInfo->mGroups as $xrefGroup}
 */
class LibertyXrefContent {
	/** @var LibertyXrefGroup[] Loaded groups, keyed by x_group name */
	public array $mGroups = [];
}