public function lookup_token_type($findThis) {
		$retval = 0;
		$sql = "SELECT * FROM cswal_token_type_table WHERE token_type=:type";
		
		try {
			$numrows = $this->db->run_query($sql, array('type'=> $findThis));
			
			if($numrows == 1) {
				$data = $this->db->get_single_record();
				$retval = $data['token_type_id'];
			}
		} catch (Exception $ex) {
			throw new exception(__METHOD__ .": failed to retrieve token type::: ". $ex->getMessage());
		}
		
		return $retval;
	}
public function lookup_token_type($findThis) {
		$retval = 0;
		$sql = "SELECT * FROM cswal_token_type_table WHERE token_type=:type";
		
		try {
			$numrows = $this->db->run_query($sql, array('type'=> $findThis));
			
			if($numrows == 1) {
				$data = $this->db->get_single_record();
				$retval = $data['token_type_id'];
			}
		} catch (Exception $ex) {
			throw new exception(__METHOD__ .": failed to retrieve token type::: ". $ex->getMessage());
		}
		
		return $retval;
	}
public function lookup_token_type ( $ findThis ) { $ retval = 0 ; $ sql = "SELECT * FROM cswal_token_type_table WHERE token_type=:type" ; try { $ numrows = $ this -> db -> run_query ( $ sql , array ( 'type' => $ findThis ) ) ; if ( $ numrows == 1 ) { $ data = $ this -> db -> get_single_record ( ) ; $ retval = $ data [ 'token_type_id' ] ; } } catch ( Exception $ ex ) { throw new exception ( __METHOD__ . ": failed to retrieve token type::: " . $ ex -> getMessage ( ) ) ; } return $ retval ; }
Lookup a token type.

@param type $findThis	(str) searches the "token_type" column for this.

@return int				token_type_id that was found; default 0 (unknown)
@throws exception
Lookup a token type .