summaryrefslogtreecommitdiff
path: root/lib/Bookmarks/M/DB/Links.pm
blob: 92fd74bb47d75e9d694049363bf22c7e170883fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package Bookmarks::M::DB::Links; 
use strict;
use DBI;
 
for my $col_name (qw(add_date last_access_date)) {
    __PACKAGE__->has_a( $col_name => 'DateTime',
                        inflate => sub { DateTime->from_epoch( epoch => $_[0] ) },
                        deflate => 'epoch',
                    );
}
 
__PACKAGE__->has_many( tags => ['Bookmarks::M::DB::LinksTags' => 'tag'] );
 
__PACKAGE__->data_type( icon => DBI::SQL_BLOB );
 
=head1 NAME
 
Bookmarks::M::DB::Links - CDBI Model Component Table Class
 
=head1 SYNOPSIS
 
    Very simple to use
 
=head1 DESCRIPTION
 
Very nice component.
 
=head1 AUTHOR
 
Clever guy
 
=head1 LICENSE
 
This library is free software . You can redistribute it and/or modify it under
the same terms as perl itself.
 
=cut
 
1;