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

0.7.$Revision: 1181 $

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

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

Creates an instance if the domain model, caches copies of the role model and the shells model
$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
$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
$config_element_obj = $profile_obj->find( $wanted );
Returns a File::DataClass::Result object for the wanted profile
$config_list_obj = $profile_obj->list( $wanted );
Returns a File::DataClass::List object whose list attribute is an array ref of account profile names. If a profile name is given it also returns a File::DataClass::Result object for that profile
$profile_obj->profile_form( $profile );
Stuffs the stash with the data to generate the profile editing form

None

None


There are no known incompatibilities in this module

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

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

Copyright (c) 2008 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE