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

402 user(s) are online (299 user(s) are browsing Support Forums)


Members: 1


Guests: 401


xoopdio,

more...

Donat-O-Meter

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

Latest GitHub Commits