1
jitao
A basic question about the methods of XoopsUser class
  • 2003/11/28 17:11

  • jitao

  • Just popping in

  • Posts: 1

  • Since: 2003/11/28


Hi, Just start learning to extend the xoops, but have a basic question about the methods in XoopsUser class. There is a line saying
"//### Methods from here below will be deprecated. ###"
What are the better ways/ methods to use if those methods are depreciated? I can not find any clue in the API documents. Please help me.
Thank you,
Ji Tao

2
skalpa
Re: A basic question about the methods of XoopsUser class
  • 2003/11/28 17:37

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Well, I can't find this message in my version so I'm not sure what methods you're talking about.
Now if these are the vars related ones, the solution is in front of you
This one is deprecated:
function uid()
    {
        return 
$this->getVar("uid");
    }


So don't use $myobj->uid();
but $myobj->getVar('uid');
instead....

And this generally applies to all the deprecated methods: the "old one" has been kept for compatibility reasons, but the alternate way of doing things is in the function body.

Skalpa.>

Login

Who's Online

180 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 180


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