Commit 7695c3ef authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Rename ->Dependencies to ->FindDependencies to not conflict with Shredder

parent fe178ad5
......@@ -744,11 +744,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->PrincipalObj->Object );
$deps->Add( out => $self->Object );
......
......@@ -862,11 +862,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->ClassObj );
$deps->Add( in => $self->Topics );
}
......
......@@ -1035,11 +1035,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->TransactionObj );
}
......
......@@ -627,11 +627,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->Object );
}
......
......@@ -616,11 +616,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
my $articles = RT::Articles->new( $self->CurrentUser );
$articles->Limit( FIELD => "Class", VALUE => $self->Id );
......
......@@ -1988,11 +1988,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->BasedOnObj )
if $self->BasedOnObj->id;
......
......@@ -329,11 +329,11 @@ sub _CoreAccessible {
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->CustomFieldObj );
}
......
......@@ -203,8 +203,8 @@ sub Process {
# stack, then objects it refers to.
return if defined $args{from}
and not $self->Observe(%args);
my $deps = RT::DependencyWalker::Dependencies->new;
$obj->Dependencies($self, $deps);
my $deps = RT::DependencyWalker::FindDependencies->new;
$obj->FindDependencies($self, $deps);
# Shove it back for later
push @{$self->{replace}}, \%args;
if ($self->{first} eq "top") {
......
......@@ -46,7 +46,7 @@
#
# END BPS TAGGED BLOCK }}}
package RT::DependencyWalker::Dependencies;
package RT::DependencyWalker::FindDependencies;
use strict;
use warnings;
......
......@@ -1413,11 +1413,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
my $instance = $self->InstanceObj;
$deps->Add( out => $instance ) if $instance;
......
......@@ -496,11 +496,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->GroupObj->Object );
$deps->Add( out => $self->MemberObj->Object );
......
......@@ -446,11 +446,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->BaseObj ) if $self->BaseObj and $self->BaseObj->id;
$deps->Add( out => $self->TargetObj ) if $self->TargetObj and $self->TargetObj->id;
......
......@@ -216,11 +216,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->ClassObj );
......
......@@ -407,11 +407,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->CustomFieldObj );
......
......@@ -751,11 +751,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->CustomFieldObj );
$deps->Add( out => $self->Object );
......
......@@ -209,11 +209,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->TopicObj );
......
......@@ -1537,11 +1537,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
# Queue role groups( Cc, AdminCc )
my $objs = RT::Groups->new( $self->CurrentUser );
......
......@@ -1943,7 +1943,7 @@ sub UID {
return "@{[ref $self]}-$RT::Organization-@{[$self->Id]}";
}
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
for my $col (qw/Creator LastUpdatedBy/) {
......
......@@ -994,11 +994,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->ScripConditionObj );
$deps->Add( out => $self->ScripActionObj );
......
......@@ -943,11 +943,11 @@ sub _CoreAccessible {
}
};
sub Dependencies {
sub FindDependencies {
my $self = shift;
my ($walker, $deps) = @_;
$self->SUPER::Dependencies($walker, $deps);
$self->SUPER::FindDependencies($walker, $deps);
$deps->Add( out => $self->QueueObj );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment