static function retrieveWithId($data) { global $adb, $log; $id = $data; $model = false; // Retrieve model and populate information $result = $adb->pquery("SELECT * FROM vtiger_webforms WHERE id=?", array($id)); if ($adb->num_rows($result)) { $model = new Webforms_Model($adb->fetch_array($result)); $model->retrieveFields(); } return $model; }