/** * insertIntoDB() insert a CSR into the database (csr_cache) * * @param CSR|String $csr the CSR to store in the database * @param Person $person the owner * @return Boolean True if insertion went ok * @access public */ static function insertIntoDB($csr, $person) { if (is_string($csr)) { $csr = new CSR($csr); if ($csr->isVali()) { return $csr->storeDB(); } } return false; }