use List::Util qw(any sum0);
use Ref::Util qw(is_coderef is_ref);
use Scalar::Util qw(blessed);
-use Time::Piece;
+use Time::Piece 1.33;
use boolean;
use namespace::clean;
our $VERSION = '999.999'; # VERSION
-=attr uuid
-
-128-bit UUID identifying the group within the database.
-
=attr name
The human-readable name of the group.
Free form text string associated with the group.
-=attr tags
-
-Text string with arbitrary tags which can be used to build a taxonomy.
-
-=attr icon_id
-
-Integer representing a default icon. See L<File::KDBX::Constants/":icon"> for valid values.
-
-=attr custom_icon_uuid
-
-128-bit UUID identifying a custom icon within the database.
-
=attr is_expanded
Whether or not subgroups are visible when listed for user selection.
The UUID of the entry visible at the top of the list.
-=attr custom_data
-
-A set of key-value pairs used to store arbitrary data, usually used by software to keep track of state rather
-than by end users (who typically work with the strings and binaries).
-
-=attr previous_parent_group
-
-128-bit UUID identifying a group within the database.
-
=attr entries
Array of entries contained within the group.
Array of subgroups contained within the group.
-=attr last_modification_time
-
-Date and time when the entry was last modified.
-
-=attr creation_time
-
-Date and time when the entry was created.
-
-=attr last_access_time
-
-Date and time when the entry was last accessed.
-
-=attr expiry_time
-
-Date and time when the entry expired or will expire.
-
-=attr expires
-
-Boolean value indicating whether or not an entry is expired.
-
-=attr usage_count
-
-TODO
-
-=attr location_changed
-
-Date and time when the entry was last moved to a different parent group.
-
=cut
# has uuid => sub { generate_uuid(printable => 1) };
\@entries = $group->entries;
-Get an array of direct entries within a group.
+Get an array of direct child entries within a group.
=cut
return $entries;
}
-=method entries_deeply
+=method all_entries
- \&iterator = $kdbx->entries_deeply(%options);
+ \&iterator = $kdbx->all_entries(%options);
Get an L<File::KDBX::Iterator> over I<entries> within a group. Supports the same options as L</groups>,
plus some new ones:
=cut
-sub entries_deeply {
+sub all_entries {
my $self = shift;
my %args = @_;
my $auto_type = delete $args{auto_type};
my $history = delete $args{history};
- my $groups = $self->groups_deeply(%args);
+ my $groups = $self->all_groups(%args);
my @entries;
return File::KDBX::Iterator->new(sub {
return $groups;
}
-=method groups_deeply
+=method all_groups
- \&iterator = $group->groups_deeply(%options);
+ \&iterator = $group->all_groups(%options);
Get an L<File::KDBX::Iterator> over I<groups> within a groups, deeply. Options:
=cut
-sub groups_deeply {
+sub all_groups {
my $self = shift;
my %args = @_;
##############################################################################
-=method objects_deeply
+=method all_objects
- \&iterator = $groups->objects_deeply(%options);
+ \&iterator = $groups->all_objects(%options);
Get an L<File::KDBX::Iterator> over I<objects> within a group, deeply. Groups and entries are considered
objects, so this is essentially a combination of L</groups> and L</entries>. This won't often be useful, but
=cut
-sub objects_deeply {
+sub all_objects {
my $self = shift;
my %args = @_;
my $auto_type = delete $args{auto_type};
my $history = delete $args{history};
- my $groups = $self->groups_deeply(%args);
+ my $groups = $self->all_groups(%args);
my @entries;
return File::KDBX::Iterator->new(sub {
$bool = $group->is_entry_templates;
-Get whether or not a group is the group containing entry template of its connected database.
+Get whether or not a group is the group containing entry template in its connected database.
=cut
a UUID. An entry can also have an icon associated with it, and there are various timestamps. Take a look at
the attributes to see what's available.
+A B<File::KDBX::Group> is a subclass of L<File::KDBX::Object>. View its documentation to see other attributes
+and methods available on groups.
+
=cut