• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Class/method modifications

#1
Hi,

what should I do if I have to override some method and I can't do it by doing my things and later use $parent::METHOD_NAME;

Example I would like to modificate some foreach in method... what is the best pracitse ?
Is there any better way than repeat some code fragment or override parent method?