<<

NAME

Koha::Result::Boolean - Booleans, with extra Koha

API

Class methods

new

    my $bool = Koha::Result::Boolean->new( $value );

Constructor method to generate a Koha::Result::Boolean object. value is a boolean expression.

set_value

    $bool->set_value(1);
    $bool->set_value(0);

Set the boolean value for the object.

messages

    my @messages = @{ $bool->messages };

Returns the Koha::Object::Message objects that were recorded.

add_message

    $bool->add_message(
        {
            message => $message,
          [ type    => 'error',
            payload => $payload ]
        }
    );

Adds a message.

Internal methods

as_bool

Internal method that exposes the boolean value of the object as a scalar.

equals

Internal method implementing equality comparison in scalar context.

AUTHORS

Tomas Cohen Arazi, <tomascohen@theke.io>

<<