Pangloss::Application::View - current view of the application model.
use Pangloss::Application::View; my $view = new Pangloss::Application::View(); # use it as a hash
Simple hash so we can put views in the store.
Currently we're using direct-variable access (ie: regular perl hash), eventually these vars should live behind accessors.
ATM, Pangloss::Application::CollectionEditor does most of the populating.
The list of error objects.
The named Pangloss::Collection object.
The list() of Pangloss objects in the named Pangloss::Collection (this is a handy shortcut for Petal templates).
The currently selected Pangloss object (ie: Pangloss::User, etc).
The following keys are added as needed:
error - associated error object added - true if the pangloss object was added removed - true if the pangloss object was removed modified - true if the pangloss object was modified
The hash of actions performed, which is added to as needed:
user Pangloss::User language Pangloss::Language concept Pangloss::Concept category Pangloss::Category term Pangloss::Term
This lets you chain things like this:
And so on.
Everything here is cloned, so you don't have to worry about modifying the original stored object (use Pangloss::Application to do that).
Steve Purkis <firstname.lastname@example.org>