REGISTRY.CLASS.PHP

NAME

registry.class.php

SYNOPSIS

registry.class.php is a simple registry class using PHP sessions for persistence

DESCRIPTION

Registry values are stored as key = value pairs

Any data type can be persisted including scalars, arrays, and resources

Persistence is created via standard PHP sessions

Generally the registry handle should be a global

APPLICATION

``

class Registry

Read/write data to registry data array, sessions make the data persistent

No external dependencies

Constructor for this registry if none exists, also starts sessions

Restores registry if one exists

$rh = new Registry()


Write persistent registry data for name

null = rh->setRegistry(name, value)

Overwrites values with same name


Read persistent registry data for name

value = rh->getRegistry(name)

Returns false if name unset


Clear (unset) persistent registry data for name

null = rh->unsetRegistry(name)

``

BUGS

None known

AUTHOR

John Bartlett
johnb@thesolution.com.au

SEE ALSO

Standalone