PDA

View Full Version : deleting a user from external script


pureimagination
10-23-2007, 06:18 PM
It seems that I would use the vb_DataManager_User class to delete a user, however how do I specify the user? delete() doesnt take any arguments. Confused here....please advise.

Opserty
10-23-2007, 08:11 PM
You have to set existing data first.

// $userdm = new vB_DataManager_User....
$userid = 1;
$userinfo = fetch_userinfo($userid);

$userdm->set_existing($userinfo);
$userdm->delete();
Should work I think .

Dismounted
10-24-2007, 06:38 AM
Do you know how to properly initialize the class?