/trunk/includes/classes/OIDplusRA.class.php |
---|
30,6 → 30,11 |
return $this->email; |
} |
public function existing() { |
$res = OIDplus::db()->query("select email from ".OIDPLUS_TABLENAME_PREFIX."ra where email = ?", array($this->email)); |
return ($res->num_rows() > 0); |
} |
public function raName() { |
$res = OIDplus::db()->query("select ra_name from ".OIDPLUS_TABLENAME_PREFIX."ra where email = ?", array($this->email)); |
if ($res->num_rows() == 0) return "(RA not in database)"; |