1
Peekay
Deprecated method replacements?
  • 2010/8/2 22:19

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I am trying to update an old module in line with the 'Blue Move' initiative, but I can't seem to find any information that will help me replace these deprecated methods.

Can anyone fill in the gaps? Thx


* MyTextSanitizer::codeSanitizer()


* MyTextSanitizer::sanitizeForDisplay()


* MyTextSanitizer::sanitizeForPreview()


* MyTextSanitizer::makeTboxData4Save()


* MyTextSanitizer::makeTboxData4Show()


* MyTextSanitizer::makeTboxData4Edit()


* MyTextSanitizer::makeTboxData4Preview()


* MyTextSanitizer::makeTboxData4PreviewInForm()


* MyTextSanitizer::makeTareaData4Save()


* MyTextSanitizer::makeTareaData4Show()


* MyTextSanitizer::makeTareaData4Edit()


* MyTextSanitizer::makeTareaData4Preview()


* MyTextSanitizer::makeTareaData4PreviewInForm()


* MyTextSanitizer::makeTareaData4InsideQuotes()


* MyTextSanitizer::oopsStripSlashesGPC()


* MyTextSanitizer::oopsStripSlashesRT()


* MyTextSanitizer::oopsAddSlashes()


* MyTextSanitizer::oopsNl2Br()
A thread is for life. Not just for Christmas.

2
redheadedrod
Re: Deprecated method replacements?

If you look at the API you will find these.

Are you sure they are depreciated? I just looked at the API for 2.4.5 and they are listed in there and not as depreciated?

For the API's you can go tohttp://dev.xoofoo.org



You can download them in various versions.

Rodney

3
Peekay
Re: Deprecated method replacements?
  • 2010/8/3 0:15

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


According to module.textsanitizer.php they're all deprecated (flags as such in debug) and listed under

###### Deprecated Methods ########
A thread is for life. Not just for Christmas.

4
Mamba
Re: Deprecated method replacements?
  • 2010/8/3 0:39

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


There is some info here
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
Peekay
Re: Deprecated method replacements?
  • 2010/8/3 0:47

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Ok, thx Mamba. I'll take a look through that page, but...

Quote:
This page was last modified 01:40, 16 December 2007

It would be nice to know what the replacements are based on the 2010 version of Xoops.
A thread is for life. Not just for Christmas.

6
Mamba
Re: Deprecated method replacements?
  • 2010/8/3 0:54

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


I've been asking the developers for a long time to help us with a documentation for the Blue Move, which would include info about depreciated methods as well.

Anybody who could help us with the Blue Move documentation?

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

7
redheadedrod
Re: Deprecated method replacements?

Also makes me wonder why if it was depreciated back before December of 2007 why it is still in the API listed as an available function when we have a totally new version since then with the 2.4.x series.

Seems like it should be noted in the API documents as a depreciated function so new developers don't even TRY to use them if they are in fact depreciated.

This is an example of one of the needs we have as well with documentation. Or lack of.

We need some knowledgeable people to totally redo the documentation but doesn't seem to be getting done up to this point.

Rodney

8
Peekay
Re: Deprecated method replacements?
  • 2010/8/3 1:03

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


@ Mamba

This is a fishing trip
A thread is for life. Not just for Christmas.

9
zyspec
Re: Deprecated method replacements?
  • 2010/8/3 2:32

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Most of this would be easy to fix in the next core release by just adding the @deprecated flag to the Doxygen comment for each of the deprecated methods in ./class/module.textsanitizer.php since that's what dev.xoofoo.org uses to generate the docs...

10
redheadedrod
Re: Deprecated method replacements?

That and any other functions etc that are depreciated... But doesn't depreciated mean, don't use these functions because they are going away?

Maybe X3...

Login

Who's Online

113 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 113


more...

Donat-O-Meter

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

Latest GitHub Commits