public function update_type($id, $type, $desc) {
		$sql = "UPDATE cswal_token_type_table SET token_type=:type, 
			token_desc=:desc WHERE token_type_id=:id";
		$params = array(
			'id'	=> $id,
			'type'	=> $type,
			'desc'	=> $desc,
		);
		
		try {
			$retval = $this->db->run_update($sql, $params);
		} catch (Exception $ex) {
			throw new Exception(__METHOD__ .": failed to update type::: ". $ex->getMessage());
		}
		
		return $retval;
	}
public function update_type($id, $type, $desc) {
		$sql = "UPDATE cswal_token_type_table SET token_type=:type, 
			token_desc=:desc WHERE token_type_id=:id";
		$params = array(
			'id'	=> $id,
			'type'	=> $type,
			'desc'	=> $desc,
		);
		
		try {
			$retval = $this->db->run_update($sql, $params);
		} catch (Exception $ex) {
			throw new Exception(__METHOD__ .": failed to update type::: ". $ex->getMessage());
		}
		
		return $retval;
	}
public function update_type ( $ id , $ type , $ desc ) { $ sql = "UPDATE cswal_token_type_table SET token_type=:type, 
			token_desc=:desc WHERE token_type_id=:id" ; $ params = array ( 'id' => $ id , 'type' => $ type , 'desc' => $ desc , ) ; try { $ retval = $ this -> db -> run_update ( $ sql , $ params ) ; } catch ( Exception $ ex ) { throw new Exception ( __METHOD__ . ": failed to update type::: " . $ ex -> getMessage ( ) ) ; } return $ retval ; }
Updates the given ID in the token_type table.

@param $id		(int) ID to update
@param $type		(str) value for token_type
@param $desc		(str) value for token_desc

@return int		Number of records updated (1)
@throws Exception
Updates the given ID in the token_type table .