Jerome Eteve > Context-Set-0.02 > Context::Set::Storage

Download:
Context-Set-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Context::Set::Storage - A base class for context storages.

populate_context

Populates the context from the storage, setting all its stored properties in one go.

Usage:

 $this->populate_context($context);

set_context_property

Gets called at set_property time by the framework.

Dont forget to return the result of the given $after code ref if you want to propagate the change in the memory object (which is what you want I suppose).

usage:

   $this->set_context_property($context, $prop_name, $values,
                               sub{
                                  ... Something done after the storage is set ...
                               });
syntax highlighting: