GroupInfo(3pm)
π GroupInfo(3pm) β LogReport's Lire Documentation
ok so this is the page for Lire::Report::GroupInfo, straight out of LogReport's Lire docs, and honestly? it's a little baddie. let's get into it π
β¨ NAME β¨
Lire::Report::GroupInfo β the object that groups together columns created by the same aggregator. (yes there's a double period in the original title, she's quirky like that. periodt.)
β¨ SYNOPSIS β¨
my $info = $subreport->group_info( 0 );
print "Group's name: ", $info->name(), "\n";
print "Group's columns starts at: ", $info->index(), "\n";
like, grab your group info, print her name, print where her columns start. that's the whole vibe check π¦
β¨ DESCRIPTION β¨
okay so the Lire::Report::GroupInfo object is literally just a container that holds the ColumnInfo objects that were all created by the same aggregator. found family, but make it report metadata π
πΈ CONSTRUCTOR πΈ
new( $name )
here's the thing β you don't just call new yourself, bestie. you create a new Lire::Report::GroupInfo object by calling the create_group_info() method on a Lire::Report::TableInfo object or on another Lire::Report::GroupInfo object. that's the move π
π OBJECT METHODS π
name()
returns the name of this group. and this name is actually useful β you can use it to find the aggregator (from the report specification) that's responsible for all the data held in this group. it's giving "who's your parent" energy π₯
row_idx()
returns the row index where this group's categorical column's labels should be displayed in the table header. yes, that's very specific and yes, she knows her place in the spreadsheet π
max_row_idx()
ok so this one is listed right here between row_idx() and parent_group_info(), and ngl the original page doesn't say a single thing about what it does. she's mysterious. she's main character energy with no backstory. you get a name and that's it π
parent_group_info()
returns the GroupInfo that contains this GroupInfo β like, her mom group. and heads up: this will be undef for the top-level TableInfo object, because the top-level table has no parent. iconic orphan behaviour π
index()
returns the column's index in the table at which the columns of this group start. important: this will be undef until the group info object is actually added to a Lire::Subreport or another Lire::Group object. so don't be out here calling it early and getting confused π«Ά
children()
returns, as an array, the Lire::Report::ColumnInfo and Lire::Report::GroupInfo objects contained in this group. all the kids, no discrimination π
info_by_index( $idx )
returns the ColumnInfo or GroupInfo that sits at index $idx among this GroupInfo's children. just hand her the number and she'll hand you the child π
group_children
returns, as an array, only the Lire::Report::GroupInfo objects contained in this GroupInfo. groups only. no columns allowed at this party π
column_children
returns, as an array, only the Lire::Report::ColumnInfo objects contained in this GroupInfo. the columns get their own party. opposite energy, same energy π«
categorical_names()
returns the categorical columns' names as an array ref. short, sweet, slay π
create_column_info( $name, $class, $type, [$label] )
creates a brand new Lire::Report::ColumnInfo object as a child of this GroupInfo. the column info attributes get initialized based on $name, $class, $type and $label (that last one's optional, btw π
).
this will set the index of the ColumnInfo object β she knows exactly where she belongs.
returns the created ColumnInfo object. π
create_group_info( $name )
creates a Lire::Report::GroupInfo as a child of this group β a little subgroup baby π₯Ή this will also set the starting column index on the GroupInfo object. the $name parameter should contain the name of the report specification aggregator that's responsible for the content of this group.
returns the created GroupInfo object. literally the birth of a group π
column_info_by_name( $name )
returns the Lire::Report::ColumnInfo object that has the name $name. and bestie she's thorough β this method searches in the current group as well as in its subgroups.
returns undef if the column isn't found. gone, not found, nothing there π
column_info_by_col_start( $col_idx )
returns the Lire::Report::ColumnInfo object that starts in column index $col_idx. again, she searches in the current group and in its subgroups. no stone unturned π
returns undef if the column isn't found in the current group.
group_info( $name )
returns the Lire::Report::GroupInfo object that has the name $name. this will be undef if it can't be found in this group info. no group, no result, that's the rule π
π SEE ALSO π
go read those too, iykyk β
π VERSION π
$Id: GroupInfo.pm,v 1.22 2006/07/23 13:16:31 vanbaal Exp $
βοΈ AUTHOR βοΈ
Francis J. Lacoste <flacoste@logreport.org> β ty king π«Ά
Β©οΈ COPYRIGHT Β©οΈ
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.
β οΈ real talk for a sec: that "WITHOUT ANY WARRANTY" bit is all caps in the original for a reason β no warranty of any kind, not even implied merchantability or fitness for a particular purpose. read the license, bestie, it's important π
and that's the page!! πΈ this was GroupInfo(3pm) from Lire 2.1.1, dated 2025-09-28 β mwah, no notes, she ate π
β¨
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms