| CatalystX-Usul documentation | view source | Contained in the CatalystX-Usul distribution. |
CatalystX::Usul::Model::UserProfiles - CRUD methods for user account profiles
0.3.$Revision: 576 $
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 of CatalystX::Usul::Shells
$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 CatalystX::Usul::File::Element object for the wanted profile
$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
$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
| CatalystX-Usul documentation | view source | Contained in the CatalystX-Usul distribution. |