private function getToken($dbh) {
    $stmt = $dbh->prepare('SELECT token FROM auth WHERE user= ?');
    $stmt->execute(array($this->user));
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
    return $row['token'];
  }
private function getToken($dbh) {
    $stmt = $dbh->prepare('SELECT token FROM auth WHERE user= ?');
    $stmt->execute(array($this->user));
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
    return $row['token'];
  }
private function getToken ( $ dbh ) { $ stmt = $ dbh -> prepare ( 'SELECT token FROM auth WHERE user= ?' ) ; $ stmt -> execute ( array ( $ this -> user ) ) ; $ row = $ stmt -> fetch ( PDO :: FETCH_ASSOC ) ; return $ row [ 'token' ] ; }
Retrieves token for use.
@param PDO $dbh a PDO object for the local authentication db
@return string a JSON object representing the token
Retrieves token for use .