Overload an object function

English! place to talk about OTRS development, programming and coding

Moderator: tto

RStraub
OTRS guru
Posts: 1985
Joined: 13 Mar 2014, 09:16
OTRS Version?: 5.0.14
Real Name: Rolf Straub

Overload an object function

Postby RStraub » 03 Jan 2017, 09:14

Hey forum,

I got tasked to modify the behaviour of escalations. I narrowed down the function TicketEscalationIndexBuild from the TicketObject. Is there an elegant way to modify only this function without copying and customizing the whole Ticket.pm?

Could I create another Ticket.pm in ~/Custom and only include one function?

Many thanks and best regards
Currently using: OTRS 5.0.14 -- MariaDB -- Ubuntu 16 LTS

reneeb
OTRS guru
Posts: 4155
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Overload an object function

Postby reneeb » 03 Jan 2017, 10:29

Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

RStraub
OTRS guru
Posts: 1985
Joined: 13 Mar 2014, 09:16
OTRS Version?: 5.0.14
Real Name: Rolf Straub

Re: Overload an object function

Postby RStraub » 03 Jan 2017, 10:33

Oh neat, that looks exactly like what I need. Thanks a bunch!
Currently using: OTRS 5.0.14 -- MariaDB -- Ubuntu 16 LTS


Return to “OTRS Developers”

Who is online

Users browsing this forum: No registered users and 1 guest