3 |
# $Id$ |
# $Id$ |
4 |
# |
# |
5 |
# $Log$ |
# $Log$ |
6 |
|
# Revision 1.48 2004/10/28 11:35:51 jonen |
7 |
|
# + bugfix related to select-criterias(filter) |
8 |
|
# |
9 |
|
# Revision 1.47 2004/08/31 14:26:08 jonen |
10 |
|
# updated |
11 |
|
# |
12 |
# Revision 1.46 2004/05/06 12:54:34 jonen |
# Revision 1.46 2004/05/06 12:54:34 jonen |
13 |
# + bugfix related to multiple select-'filter' |
# + bugfix related to multiple select-'filter' |
14 |
# |
# |
727 |
|
|
728 |
} elsif (my $guid = $query->{options}->{GUID}) { |
} elsif (my $guid = $query->{options}->{GUID}) { |
729 |
$type = 'TRANSPARENT'; |
$type = 'TRANSPARENT'; |
730 |
$query->{criterias} = [ { key => 'guid', op => 'eq', val => $guid } ]; |
if(ref($query->{criterias}) eq 'ARRAY') { |
731 |
|
push @{$query->{criterias}}, { key => 'guid', op => 'eq', val => $guid }; |
732 |
|
} else { |
733 |
|
$query->{criterias} = [ { key => 'guid', op => 'eq', val => $guid } ]; |
734 |
|
} |
735 |
|
} |
736 |
# if operator is different (dispatcher for 'getListFiltered') |
# if operator is different (dispatcher for 'getListFiltered') |
737 |
} elsif (my $op = $query->{options}->{op}) { |
if (my $op = $query->{options}->{op}) { |
738 |
$type = 'TRANSPARENT'; |
$type = 'TRANSPARENT'; |
739 |
$query->{criterias} = [ { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} } ]; |
if(ref($query->{criterias}) eq 'ARRAY') { |
740 |
|
push @{$query->{criterias}}, { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} }; |
741 |
|
} else { |
742 |
|
$query->{criterias} = [ { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} } ]; |
743 |
|
} |
744 |
} |
} |
745 |
|
|
746 |
# HACK: special case: querying by id does not translate into a common tangram query |
# HACK: special case: querying by id does not translate into a common tangram query |
1049 |
# because they maybe exists and should only be SETTED not CREATED! |
# because they maybe exists and should only be SETTED not CREATED! |
1050 |
# TODO: Create a flag at the scheme for that reason! |
# TODO: Create a flag at the scheme for that reason! |
1051 |
# (e.g child_node => 1 for child-nodes only like e.g. UserData) |
# (e.g child_node => 1 for child-nodes only like e.g. UserData) |
1052 |
if($attr_options->{$_}->{class} eq 'NetPerson' || $attr_options->{$_}->{class} eq 'Event') { |
if($attr_options->{$_}->{class} eq 'NetPerson' || $attr_options->{$_}->{class} eq 'Event' || $attr_options->{$_}->{class} eq 'BetRule') { |
1053 |
#$obj->{$_} = undef(); |
#$obj->{$_} = undef(); |
1054 |
} else { |
} else { |
1055 |
$obj->{$_} = $self->createNode($attr_options->{$_}->{class}); |
$obj->{$_} = $self->createNode($attr_options->{$_}->{class}); |