1
AndyM
Extending textsanitiser...
  • 2008/8/22 3:43

  • AndyM

  • Quite a regular

  • Posts: 296

  • Since: 2003/8/31


Basically, I want to add some functionality to the module.textsanitizer php file, specifically the displayTarea() function, but I have no idea how to go about it right now.

I don't really want to modify the file itself - I know it's possible to extend a class, but can you add something to a function in a class?

2
ghia
Re: Extending textsanitiser...
  • 2008/8/22 9:16

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
I know it's possible to extend a class, but can you add something to a function in a class?
Yes, simply override the function in the new class, as in this example.

3
AndyM
Re: Extending textsanitiser...
  • 2008/8/24 23:36

  • AndyM

  • Quite a regular

  • Posts: 296

  • Since: 2003/8/31


Thanks, I had a look at that link and used it as a base for a google search, but it looks like I can't achieve what I want to do without hacking the original file.

Login

Who's Online

210 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits