Group(3pm)

πŸ“¦ version 2.1.1, in arch rolling

🌸 NAME β€” Group(3pm) 🌸

Bestie, welcome to Group(3pm) from LogReport's Lire Documentation πŸ’– This is the page for Lire::Report::Group, aka the object that include subgroups and other entries. Slay.


✨ SYNOPSIS ✨

Here's the loop vibe:

foreach my $e ( $group->entries() ) {
    # Process entries' data.
}

πŸ¦‹ DESCRIPTION πŸ¦‹

The Lire::Report::Group object contains entries grouped together in a subreport. That's the whole flex, no cap.


πŸ› οΈ CONSTRUCTOR πŸ› οΈ

You create a new Lire::Report::Group object by calling the create_group() method on one Lire::Report::Entry object. Iconic behavior.


πŸŽ€ OBJECT METHODS πŸŽ€

πŸ’– parent_entry() πŸ’–

Returns the entry in which this goup is contained. This will be undef for the Subreport since it's not contained in any entry. Yes, goup β€” the original spelling stays, bestie πŸ˜­πŸ’€

πŸ’– group_info() πŸ’–

Returns the Lire::Report::GroupInfo which contains the information describing the entries of this group. Very "here's the lore" energy.

πŸ’– subreport() πŸ’–

Returns the Lire::Report::Subreport object in which this entry is

The original sentence literally just ends there. That's the whole vibe check πŸ˜­πŸ’€

πŸ’– row_idx() πŸ’–

Returns the row index in the table body where this group's summary should be displayed. If it's undef, this group isn't displayed. Simple as that.

πŸ’– show( [$show] ) πŸ’–

Returns the number of entries that should be displayed in the formatted report. There may be more entries than that in the group. When this parameter is zero or undefined, all available entries should be displayed.

If the $show parameter is set, the group's show parameter will be set to this new value. Periodt.

πŸ’– nrecords( [$n] ) πŸ’–

Returns the number of DLF records that were included in this group. The signature has an optional $n, but the page only documents the return value, so that's what we're giving you 🫢

πŸ’– missing_cases( [$n] ) πŸ’–

Returns the number of DLF records that contained missing cases which prevent them from being unclude in the subreport. Yes, unclude β€” original typo, we keep it, it's part of the lore now πŸ™ˆ

πŸ’– summary_values() πŸ’–

Returns the summary values of this group. This is an array of hash references like the ones returned by the values() method described in Lire::Report::Entry(3pm). Cute.

πŸ’– get_summary_value( $name ) πŸ’–

Returns the summary value of the operator $name. This is a hash reference like the one returned by the values() method described in Lire::Report::Entry(3pm). Returns undef if the summary value wasn't computed for operator $name. Very "if you know, you know" πŸ’…

πŸ’– set_summary_value( $name, %value ) πŸ’–

Sets the value of the operator $name computed over all the DLF records of the group. Consult the add_value() method in Lire::Report::Entry(3pm) for information on the parameters. Go off.

πŸ’– entries() πŸ’–

Returns the entries in the group. That's it. That's the method.

πŸ’– create_entry() πŸ’–

Adds a data entry to this group. This will create a new Lire::Report::Entry object which can then be filled with data. Main character energy fr fr.

πŸ’– find_entry( $name, $dlf ) πŸ’–

Signature only, no description on the original page: find_entry( $name, $dlf ). That's all there is, bestie. Periodt.


πŸ‘€ SEE ALSO πŸ‘€


🏷️ VERSION 🏷️

$Id: Group.pm,v 1.33 2006/07/23 13:16:31 vanbaal Exp $

Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org

This file is part of Lire.

Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.


πŸ‘‘ AUTHOR πŸ‘‘

Francis J. Lacoste <flacoste@logreport.org>

✨ That's the tea, bestie. Source/version sign-off: Lire 2.1.1, dated 2025-09-28, and this iconic page is Group(3pm). Mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from