# \cge_tmpdata

A convenience class to share data between classes and functions without using global variables.

Data stored using this class does not survive after the request.

## Summary

Methods
Properties
Constants
exists()
get()
set()
erase()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
final

File
  lib/class.cge_tmpdata.php
Package
  \CGExtensions
Class hierarchy
  \cge_tmpdata

## Tags

todo |

## Methods

### exists()

    exists(string $key) : bool

Test if the specified key exists in stored data.

#### Parameters

string | $key |

#### Returns

bool

#

static

## Tags

todo |

### get()

    get(string $key, mixed $dflt) : mixed

Return the value of the specified key

#### Parameters

string | $key |
mixed | $dflt | The default value to return if the key does not exist.

#### Returns

mixed

#

static

## Tags

todo |

### set()

    set(string $key, mixed $value)

Set the specified data into temporary storage

#### Parameters

string | $key |
mixed | $value |

#

static

## Tags

todo |

### erase()

    erase(string $key)

Erase the data associated with the specified key from temporary storage.

#### Parameters

string | $key |

#

static

## Tags

todo |

### class.cge_tmpdata.php