Re: Auth_Container::fetchData()
| From: | Martin Jansen | Date: | Wed, 17 Apr 2002 13:34:16 +0000 |
| Subject: | Re: Auth_Container::fetchData() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5610@lists.php.net to get a copy of this message | ||
On Wed, 17 Apr 2002 16:13:25 +0300 (EEST), Mika Tuupola wrote:
> I'm a bit confused what should the fetchData() in Auth_Container
> classes do. PHPDoc for Auth_Container_DB::fetchData says:
>
> "This function returns a associative hash that contains the
> values for all fields in the table"
The doc comments are wrong. I'll fix them soon.
> fetchdata() name also implies that it should return data.
Then it would be getData() ;-). Actually, fetchData() fetches
informations from the storage container and evaluates them.
On the basis of this evaluation it returns true or false.
> However what fetchData() actually seems to return is TRUE or
> FALSE depending if the username / password combination was
> correct. This also seems to be case with File and LDAP containers.
That's the intention of fetchData().
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/