UR::Ob...Aspect(3pm)
β¨ NAME β¨
UR::Object::View::Aspect β bestie, it's literally a specification for one aspect of a view π
(that's the whole vibe, that's the manual name, we're not gatekeeping π«Ά)
πΈ SYNOPSIS πΈ
okay so here's how you actually use it, no cap β you hand create_view a lil list of aspects and each one is either just a plain string (the easy route) or a full-on hashref with extra deets:
my $v = $o->create_view(
perspective => 'default',
toolkit => 'xml',
aspects => [
'id',
'name',
'title',
{
name => 'department',
perspective => 'logo'
},
{
name => 'boss',
label => 'Supervisor',
aspects => [
'name',
'title',
{
name => 'subordinates',
perspective => 'graph by title'
}
]
}
]
);
see how the aspects list mixes bare strings and hashrefs? iconic behavior honestly π and yes, aspects can nest inside aspects β boss has its own whole squad of name, title, and a subordinates sub-aspect riding along with perspective => 'graph by title' π it's giving recursive, it's giving main character energy, we love that for it π
and that's the whole page, bestie π no boring epilogue, no hidden gotchas, we ate and left no crumbs π
courtesy of perl v5.32.1, dated 2022-01-17 β so this page is vintage but still serving π§ go forth and specify those aspects, mwah π β¨
π¦ where this page comes from
- debian bookworm: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms