TableInfo(3pm)
π TableInfo(3pm) π
ok so this is part of LogReport's Lire Documentation, and bestie, if you're staring down a subreport and wondering where all its column and group metadata lives, it's literally right here. welcome to Lire::Report::TableInfo π«Ά
β¨ NAME β¨
Lire::Report::TableInfo β the object that holds all the GroupInfo and ColumnInfo for one subreport. that's it, that's the whole vibe π
π SYNOPSIS π
my $info = $subreport->table_info;
my $col_info = $info->colum_info( "request_total" );
(yes, colum_info β that's how it's written in the original, don't come for me, i'm just the messenger π)
πΈ DESCRIPTION πΈ
the Lire::Report::TableInfo object holds the ColumnInfo and GroupInfo objects for one subreport.. (double period, iconic, no notes π)
π¦ CONSTRUCTOR π¦
π new()
creates a shiny new Lire::Report::TableInfo object. fresh out the box, slay β¨
π column_info_by_name( $name )
returns the Lire::Report::ColumnInfo object whose name is $name.
β οΈ heads up: unlike the method inLire::Report::GroupInfo, this one throws an exception if there's no column named$name. it does not play nice about it, and honestly? respect.
π column_info_by_col_start( $idx )
returns the Lire::Report::ColumnInfo object that starts at column index $idx.
β οΈ again, unlike the method inLire::Report::GroupInfo, this one throws an exception if this column is out of bounds. no quiet littleundef, just vibes and errors π
π group_info( $name )
returns the Lire::Report::GroupInfo object whose name is $name.
β οΈ and yes, contrary to the method inLire::Report::GroupInfo, this one throws an exception if there's no column named$name. consistent queen π
π ncols()
returns how many columns this table has. simple, effective, ate π₯
π column_infos()
returns an array with all the columns of the table. each element is a Lire::Report::ColumnInfo object.
π groups()
returns an array with all the groups of the table. each element is a Lire::Report::GroupInfo object.
π columns_width()
returns an array where each element is the suggested width of a column, in characters. it's giving "please make it fit" π
π header_rows()
returns an array reference containing one array reference for each row in the header. every row contains the ColumnInfos that should appear on that header line. the first row has all the numerical columns, and the categorical columns show up based on their nesting. the index of a column is always equal to that column's start. iykyk π§
π set_variables_indices()
registers this TableInfo's variables using Lire::Config::VariableIndex. bookkeeping era β¨
π reset_variable_indices()
removes the variables' indices. call this to undo the effect of set_variables_indices(). it's the uno reverse card π
π SEE ALSO π
Lire::Report::Subreport(3pm) and Lire::Report::ColumnInfo(3pm) β go read those next, bestie, they're the supporting cast π
β VERSION β
$Id: TableInfo.pm,v 1.26 2006/07/23 13:16:31 vanbaal Exp $
π 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.
π AUTHOR π
Francis J. Lacoste <flacoste@logreport.org>
and that's the whole page, bestie!! π this was Lire 2.1.1, dated 2025-09-28, and the page itself is TableInfo(3pm) β go forth and slay your subreport metadata πβ¨π
π¦ 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