function lookup_token($consumer, $token_type, $token) { /*{{{*/ $token_attrib = $token_type . "_token"; if ($consumer->key == $this->consumer->key && $token == $this->{$token_attrib}->key) { return $this->{$token_attrib}; } return null; }