Auth_Container::fetchData()
| From: | Mika Tuupola | Date: | Wed, 17 Apr 2002 13:13:25 +0000 |
| Subject: | Auth_Container::fetchData() | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-5606@lists.php.net to get a copy of this message | ||
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"
fetchdata() name also implies that it should return data.
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.
I think there should be a way to retrieve additional data
(such as additional fields from database, or CVS username
from passwd file) from the container object. Changing the
behaviour of fetchData() would break quite a lot things
though.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/