NAME

Mango::Profile - Module representing a user profile

SYNOPSIS

my $profile = $provider->search({ user => 23 });
print $profile->created;
$profile->first_name('Christopher');
$profile->update;

DESCRIPTION

Mango::Profile represents a user profile containing user information.

METHODS

created

Returns the date and time in UTC the profile was created as a DateTime object.

print $profile->created;

destroy

Deletes the current profile.

first_name

Arguments: $first_name

Gets/sets the first name of the current profile.

print $profile->first_name;

full_name

Returns the full name ("$firstname $lastname") for the current profile.

id

Returns the id of the current profile.

print $profile->id;

last_name

Arguments: $last_name

Gets/sets the last name of the current profile.

print $profile->last_name;

update

Saves any changes made to the profile back to the provider.

$profile->password('Red');
$profile->update;

Whenever "update" is called, "updated" is automatically set to the current time in UTC.

updated

Returns the date and time in UTC the profile was last updated as a DateTime object.

print $profile->updated;

SEE ALSO

Mango::Object, Mango::Provider::Profiles

AUTHOR

Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/