line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package DBIx::Romani::Query::Select::OrderBy; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
306
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new |
7
|
|
|
|
|
|
|
{ |
8
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
9
|
0
|
|
|
|
|
|
my $args = shift; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my $value; |
12
|
|
|
|
|
|
|
my $dir; |
13
|
|
|
|
|
|
|
|
14
|
0
|
0
|
|
|
|
|
if ( ref($args) eq 'HASH' ) |
15
|
|
|
|
|
|
|
{ |
16
|
0
|
|
|
|
|
|
$value = $args->{value}; |
17
|
0
|
|
|
|
|
|
$dir = $args->{dir}; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
else |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
|
|
|
|
|
$value = $args; |
22
|
0
|
|
|
|
|
|
$dir = shift; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
0
|
0
|
|
|
|
|
if ( not defined $dir ) |
26
|
|
|
|
|
|
|
{ |
27
|
0
|
|
|
|
|
|
$dir = "asc"; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
my $self = { |
31
|
|
|
|
|
|
|
value => $value, |
32
|
|
|
|
|
|
|
dir => $dir |
33
|
|
|
|
|
|
|
}; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
bless $self, $class; |
36
|
0
|
|
|
|
|
|
return $self; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
0
|
0
|
|
sub get_dir { return shift->{dir}; } |
40
|
0
|
|
|
0
|
0
|
|
sub get_value { return shift->{value}; } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub clone |
43
|
|
|
|
|
|
|
{ |
44
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
|
|
|
my $args = { |
47
|
|
|
|
|
|
|
value => $self->get_value(), |
48
|
|
|
|
|
|
|
dir => $self->get_dir() |
49
|
|
|
|
|
|
|
}; |
50
|
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
return DBIx::Romani::Query::Select::OrderBy->new($args); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|