Example #1
0
	/**
	* Returns the current number of keys in the keystore
	*
	* @return int
	* @throws Interspire_KeyStore_Exception
	*/
	public function count()
	{
		$count = $this->db->FetchOne("SELECT COUNT(*) as `c` FROM `[|PREFIX|]keystore`");
		if ($count === false) {
			throw new Interspire_KeyStore_Exception($this->db->GetErrorMsg());
		}
		return (int)$count;
	}