xoops forums

Peekay

XOOPS is my life!
Posted on: 2010/8/2 22:19
Peekay
Peekay (Show more)
XOOPS is my life!
Posts: 2335
Since: 2004/11/20
#1

Deprecated method replacements?

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.

redheadedrod

Home away from home
Posted on: 2010/8/2 22:53
redheadedrod
redheadedrod (Show more)
Home away from home
Posts: 1296
Since: 2008/2/26
#2

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 to http://dev.xoofoo.org



You can download them in various versions.

Rodney

Peekay

XOOPS is my life!
Posted on: 2010/8/3 0:15
Peekay
Peekay (Show more)
XOOPS is my life!
Posts: 2335
Since: 2004/11/20
#3

Re: Deprecated method replacements?

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.

Mamba

Moderator
Posted on: 2010/8/3 0:39
Mamba
Mamba (Show more)
Moderator
Posts: 10964
Since: 2004/4/23
#4

Re: Deprecated method replacements?

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

Peekay

XOOPS is my life!
Posted on: 2010/8/3 0:47
Peekay
Peekay (Show more)
XOOPS is my life!
Posts: 2335
Since: 2004/11/20
#5

Re: Deprecated method replacements?

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.

Mamba

Moderator
Posted on: 2010/8/3 0:54
Mamba
Mamba (Show more)
Moderator
Posts: 10964
Since: 2004/4/23
#6

Re: Deprecated method replacements?

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

redheadedrod

Home away from home
Posted on: 2010/8/3 1:03
redheadedrod
redheadedrod (Show more)
Home away from home
Posts: 1296
Since: 2008/2/26
#7

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

Peekay

XOOPS is my life!
Posted on: 2010/8/3 1:03
Peekay
Peekay (Show more)
XOOPS is my life!
Posts: 2335
Since: 2004/11/20
#8

Re: Deprecated method replacements?

@ Mamba

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

zyspec

Module Developer
Posted on: 2010/8/3 2:32
zyspec
zyspec (Show more)
Module Developer
Posts: 1077
Since: 2004/9/21
#9

Re: Deprecated method replacements?

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...

redheadedrod

Home away from home
Posted on: 2010/8/3 2:48
redheadedrod
redheadedrod (Show more)
Home away from home
Posts: 1296
Since: 2008/2/26
#10

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...