Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
SIMPLE: User profile information lookup functions?
Is there a set of functions that will allow me to safely and easily lookup user information with an ID? Something along the lines of $Users->GetUserInfo($UserID, 'email');
I don't want to have to use a custom SQL, because this seems like a benign task that would already be built in. I have searched the documentation endlessly, and the only option I see is using SQL.
Any hints?
I don't want to have to use a custom SQL, because this seems like a benign task that would already be built in. I have searched the documentation endlessly, and the only option I see is using SQL.
Any hints?
1
Comments
$User = $UserModel->GetID($UserID);
That will give you a dataset of the stuff you're looking for.
//edit: Double-check that the GetID method is in your version's UserModel (applications/dashboard/models/class.usermodel.php). I forget when it was added.