App::Dochazka::REST::Model::Schedintvls - object class for "scratch schedules"
Version 0.115
use App::Dochazka::REST::Model::Schedintvls; ...
This module provides the following exports:
Constructor. See Employee.pm->spawn for general comments.
Instance method. Resets object, either to its primal state (no arguments) or to the state given in PARAMHASH.
Populate the schedintvls object (called automatically by 'reset' method which is, in turn, called automatically by 'spawn')
Special accessors that do not necessarily correspond to columns in the database table. These functions return whatever value happens to be associated with the object, with no guarantee that it matches the database.
Accessor method.
Instance method. Once the scratch intervals are inserted, we have a fully populated object. This method runs each scratch interval through the stored procedure 'translate_schedintvl' -- upon success, it creates a new attribute, $self->{schedule}, containing the translated intervals.
$self->{schedule}
Instance method. Attempts to INSERT one or more records (one for each interval in the 'intvls' attribute) into the 'schedintvls' table. Field values are taken from the object. Returns a status object.
There is no update method for schedintvls. Instead, delete and re-create.
Instance method. Once we are done with the scratch intervals, they can be deleted. Returns a status object.
Instance method. Returns a JSON string representation of the schedule.
Get next value from the scratch_sid_seq sequence
Nathan Cutler, <presnypreklad@gmail.com>
<presnypreklad@gmail.com>
To install App::Dochazka::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::REST
CPAN shell
perl -MCPAN -e shell install App::Dochazka::REST
For more information on module installation, please visit the detailed CPAN module installation guide.