CatalystX::Usul::UserProfiles - CRUD methods for user account profiles
Describes v0.17.$Rev: 1 $
use CatalystX::Usul::UserProfiles; $profile_obj = CatalystX::Usul::Model::UserProfiles->new( $config ) ); $profile_obj->find( $profile );
These methods maintain the user account profiles used by the user class to create new user accounts. This class inherits from File::DataClass::Schema which provides the necessary CRUD methods. Data is stored in the user_profiles.json file in the ctrldir
ctrldir
Defines the following attributes
+result_source_attributes
Defines the result source attributes for the schema class
source_name
A string which defaults to profile
profile
$self->create( $hash_ref_of_fields_and_values );
Creates a new profile. Calls the create method on the resultset provided by calling the "resultset" method
$self->delete( $profile );
Deletes the named profile. Calls the delete method on the resultset provided by calling the "resultset" method
$profile_obj = $self->find( $profile );
Finds and returns a profile object. Calls the find method on the resultset provided by calling the "resultset" method
$list_obj = $self->list( $profile );
Calls the list method on the resultset provided by calling the "resultset" method. The list object has a result attribute which is the return value from "find" and a list of defined profiles
result
$resultset = $self->resultset;
Returns a File::DataClass::ResultSet object. Calls the parent class resultset method passing in the hard coded result source name which is profile
resultset
$source = $self->source;
Returns a File::DataClass::ResultSource object. Calls the parent class source method passing in the hard coded result source name which is profile
source
$self->update( $hash_ref_of_fields_and_values );
Updates an existing profile. Calls the update method on the resultset provided by calling the "resultset" method
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>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 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
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.