The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Dochazka::REST::Model::Schedule - schedule functions

VERSION

Version 0.074

SYNOPSIS

    use App::Dochazka::REST::Model::Schedule;

    ...

EXPORTS

This module provides the following exports:

get_json

METHODS

spawn

Constructor. See Employee.pm->spawn for general comments.

reset

Instance method. Resets object, either to its primal state (no arguments) or to the state given in PARAMHASH.

Accessor methods

Basic accessor methods for all the fields of Schedule table. These functions return whatever value happens to be associated with the object, with no guarantee that it matches the database.

sid

Accessor method.

schedule

Accessor method.

remark

Accessor method.

insert

Instance method. Attempts to INSERT a record into the 'schedules' table. Field values are taken from the object. Returns a status object.

update

There is no update method for schedules. To update a schedule, delete it and then re-create it (see Spec.pm for a description of how to do this, or refer to t/007-schedule.t).

delete

Instance method. Attempts to DELETE a schedule record. This may succeed if no other records in the database refer to this schedule.

FUNCTIONS

get_json

Given a database handle and a SID, queries the database for the JSON string associated with the SID. Returns undef if not found.

AUTHOR

Nathan Cutler, <presnypreklad@gmail.com>