Overload an object function

English! place to talk about development, programming and coding
Post Reply
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Overload an object function

Post by RStraub »

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 6.0.14 -- MariaDB -- Ubuntu 16 LTS
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Overload an object function

Post by reneeb »

Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Overload an object function

Post by RStraub »

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