<<

NAME

Koha::Patron;;Category - Koha Patron;;Category Object class

API

Class Methods

effective_BlockExpiredPatronOpacActions

my $BlockExpiredPatronOpacActions = $category->effective_BlockExpiredPatronOpacActions

Return the effective BlockExpiredPatronOpacActions value.

store

default_messaging

my $messaging = $category->default_messaging();

get_password_expiry_date

Returns date based on password expiry days set for the category. If the value is not set we return undef, password does not expire

my $expiry_date = $category->get_password_expiry_date();

effective_reset_password

Returns if patrons in this category can reset their password. If set in $self->reset_password or, if undef, falls back to the OpacResetPassword system preference.

effective_change_password

Returns if patrons in this category can change their password. If set in $self->change_password or, if undef, falls back to the OpacPasswordChange system preference.

effective_min_password_length

    $category->effective_min_password_length()

Retrieve category's password length if set, or minPasswordLength otherwise

effective_require_strong_password

    $category->effective_require_strong_password()

Retrieve category's password strength if set, or RequireStrongPassword otherwise

override_hidden_items

    if ( $patron->category->override_hidden_items ) {
        ...
    }

Returns a boolean that if patrons of this category are exempt from the OPACHiddenItems policies

TODO: Remove on bug 22547

can_make_suggestions

    if ( $patron->category->can_make_suggestions ) {
        ...
    }

Returns if the OPAC logged-in user is allowed to make OPAC purchase suggestions.

Internal methods

_library_limits

 configure library limits

type

<<