*/
namespace Friendica\Model;
+use Friendica\Database\dba;
use Friendica\Database\DBM;
use Friendica\Util\DateTimeFormat;
-use dba;
/**
* Methods to deal with entries of the 'openwebauth-token' table.
{
/**
* Create an entry in the 'openwebauth-token' table.
- *
+ *
* @param string $type Verify type.
* @param int $uid The user ID.
* @param string $token
* @param string $meta
- *
+ *
* @return boolean
*/
public static function create($type, $uid, $token, $meta)
/**
* Get the "meta" field of an entry in the openwebauth-token table.
- *
+ *
* @param string $type Verify type.
* @param int $uid The user ID.
* @param string $token
- *
+ *
* @return string|boolean The meta enry or false if not found.
*/
public static function getMeta($type, $uid, $token)
/**
* Purge entries of a verify-type older than interval.
- *
+ *
* @param string $type Verify type.
* @param string $interval SQL compatible time interval
*/