aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-03-22 00:39:49 +0100
committerMaarten Vanraes <alien@mageia.org>2016-05-14 09:25:24 +0200
commite4b0392f4eabd911e40c3e950fd463361834b31d (patch)
tree0be8692b7798cb7fcefb92105b964fea4624904d /lib/ManaTools
parent95101fe3bc4f17ead92b40f4655140ab0b75cded (diff)
downloadmanatools-e4b0392f4eabd911e40c3e950fd463361834b31d.tar
manatools-e4b0392f4eabd911e40c3e950fd463361834b31d.tar.gz
manatools-e4b0392f4eabd911e40c3e950fd463361834b31d.tar.bz2
manatools-e4b0392f4eabd911e40c3e950fd463361834b31d.tar.xz
manatools-e4b0392f4eabd911e40c3e950fd463361834b31d.zip
IO: add shorthand functions for findin and findout
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/Shared/disk_backend/IO.pm36
1 files changed, 35 insertions, 1 deletions
diff --git a/lib/ManaTools/Shared/disk_backend/IO.pm b/lib/ManaTools/Shared/disk_backend/IO.pm
index a143e54b..f8ea3ee4 100644
--- a/lib/ManaTools/Shared/disk_backend/IO.pm
+++ b/lib/ManaTools/Shared/disk_backend/IO.pm
@@ -71,7 +71,7 @@ has 'db' => (
isa => 'ManaTools::Shared::disk_backend',
init_arg => undef,
lazy => 1,
- default => undef,
+ default => undef
);
has 'id' => (
@@ -117,4 +117,38 @@ sub unhook {
$self->db->rmio($self);
}
+#=============================================================
+
+=head2 findin
+
+=head3 DESCRIPTION
+
+ this method find the Parts it's an in for
+
+=cut
+
+#=============================================================
+sub findin {
+ my $self = shift;
+ my $db = $self->db();
+ return $db->findin($self, @_);
+}
+
+#=============================================================
+
+=head2 findout
+
+=head3 DESCRIPTION
+
+ this method find the Parts it's an out for
+
+=cut
+
+#=============================================================
+sub findout {
+ my $self = shift;
+ my $db = $self->db();
+ return $db->findout($self, @_);
+}
+
1;