The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Yote::AppRoot - Application Server Base Objects

DESCRIPTION

This is the root class for all Yote Apps. Extend it to create an App Object.

Each Web Application has a single container object as the entry point to that object which is an instance of the Yote::AppRoot class. A Yote::AppRoot extends Yote::Obj and provides some class methods and the following stub methods.

PUBLIC API METHODS

account()

Returns the currently logged in account using this app.

token_login()

Returns a token that is used by the client and server to sync up data for the case of a user not being logged in.

OVERRIDABLE METHODS

_init_account( $acct )

This is called whenever a new account is created for this app. This can be overridden to perform any initialzation on the account.

_new_account()

This returns a new Yote::Account object to be used with this app. May be overridden to return a subclass of Yote::Account.

PRIVATE DATA FIELDS

_account_roots

This is a hash of login ID to account.

AUTHOR

Eric Wolf coyocanid@gmail.com http://madyote.com

LICENSE AND COPYRIGHT

Copyright (C) 2011 Eric Wolf

This module is free software; it can be used under the same terms as perl itself.