CatalystX::Usul::Model::UserProfiles - CRUD methods for user account profiles


CatalystX-Usul documentation  | view source Contained in the CatalystX-Usul distribution.

Index


Name

Top

CatalystX::Usul::Model::UserProfiles - CRUD methods for user account profiles

Version

Top

0.3.$Revision: 576 $

Synopsis

Top

   use CatalystX::Usul::Model::UserProfiles;

   $profile_obj = CatalystX::Usul::Model::UserProfiles->new( $app, $config ) );
   $profile_obj->shells( $shells_obj );
   $profile_obj->roles ( $roles_obj );

Description

Top

These methods maintain the user account profiles used by the identity class to create new user accounts. This class inherits from CatalystX::Usul::Model::Config which provides the necessary CRUD methods. Data is stored in the identity.xml file in the ctrldir

Subroutines/Methods

Top

new

Creates an instance of CatalystX::Usul::Shells

create_or_update

   $profile_obj->create_or_update;

Creates a new user account profile or updates an existing one. Field data is extracted from the request object. The result message is written to $stash

delete

   $profile_obj->delete;

Delete the selected user account profile. The name of the profile to delete is extracted from the request object. The result message is written to $stash

find

   $config_element_obj = $profile_obj->find( $wanted );

Returns a CatalystX::Usul::File::Element object for the wanted profile

get_list

   $config_list_obj = $profile_obj->get_list( $wanted );

Returns a CatalystX::Usul::File::List object whose list attribute is an array ref of account profile names. If a profile name is given it also returns a CatalystX::Usul::File::Element object for that profile

user_profiles_form

   $profile_obj->profile_form( $profile );

Stuffs the stash with the data to generate the profile editing form

Diagnostics

Top

None

Configuration and Environment

Top

None

Dependencies

Top

CatalystX::Usul::Model::Config

Incompatibilities

Top

There are no known incompatibilities in this module

Bugs and Limitations

Top

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Top

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Top


CatalystX-Usul documentation  | view source Contained in the CatalystX-Usul distribution.