<?php /*********************************************** DAVE PHP API https://github.com/evantahler/PHP-DAVE-API Evan Tahler | 2011 I am an example function to Delete a user ***********************************************/ if ($ERROR == 100) { $AuthResp = AuthenticateUser(); if ($AuthResp[0] !== true) { $ERROR = $AuthResp[1]; } else { $resp = _DELETE("users", array("UserID" => $PARAMS['UserID'], "ScreenName" => $PARAMS['ScreenName'], "EMail" => $PARAMS['EMail'])); if ($resp[0] == false) { $ERROR = $resp[1]; } } }
public function DELETE() { $resp = _DELETE($this->DaveTableObject->table(), $this->DATA); return $resp[1]; }