The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Rapi::Blog::DB::Result::User - User row object

DESCRIPTION

This is the default User Result class/row object for Rapi::Blog. The list_users() template directive returns an array of these objects (in the sub property rows)

This is a DBIx::Class::Row.

COLUMNS

id

Auto-increment user id. Read-only.

username

The unique username used to login to the system. This links with the RapidApp AuthCore user object with the same username and the system automatically keeps these objects in sync.

full_name

Friendly display name.

image

CAS image column ('cas_img'). Contains the sha1 of a file within the SimpleCAS.

email

User's E-Mail address

admin

True/false permission flag if the user is an admin or not. Setting this value automatically adds or removes the administrators role in AuthCore user object.

author

True/false permission flag which determines whether or not a user is allowed to add new posts.

comment

True/false permission flag which determines whether or not a user is allowed to add comments.

set_pw

Virtual column can be set with a plaintext value that on insert/update will store the hashed password in the AuthCore user row.

METHODS

image_url

URL which can be used to access the user's image (i.e. avatar) for the active site/scaffold.

can_post

Util method returns true if the user can post. Will be true if the user is either an admin or an author.

can_post

Util method returns true if the user can comment. Will be true if the user is either an admin or has the comment permission.

comments

Multi-relationship to all the Comments this user has created.

post_authors

Multi-relationship to all the Posts this user is the author of.

post_creators

Multi-relationship to all the Posts this user has created.

post_updaters

Multi-relationship to all the Posts this user is the last updater of.

SEE ALSO

AUTHOR

Henry Van Styn <vanstyn@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by IntelliTree Solutions llc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.