[Rt-devel] RTFM API question
    Todd Chapman 
    todd at chaka.net
       
    Thu Dec  8 15:30:13 EST 2005
    
    
  
RT::FM::Article implements this method:
sub URI {
    my $self = shift;
    unless ( $self->CurrentUserHasRight('ShowArticle') ) {
        return $self->loc("Permission Denied");
    }
    my $uri = RT::URI::fsck_com_rtfm->new( $self->CurrentUser );
    return ( $uri->URIForObject($self) );
}
Why computer the URI when it is stored in the table?
Is it because the organiztion name might be changed?
What is the best way to get the URI stored in the table?
$self->{URI} ?
-Todd
    
    
More information about the Rt-devel
mailing list