NAME
App::Dochazka::REST::Model::Privhistory - privilege history functions
VERSION
Version 0.072
SYNOPSIS
use App::Dochazka::REST::Model::Privhistory;
...
EXPORTS
This module provides the following exports:
get_privhistory
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 privhistory table. These functions return whatever value happens to be associated with the object, with no guarantee that it matches the database.
int_id
Accessor method.
eid
Accessor method.
priv
Accessor method.
effective
Accessor method.
remark
Accessor method.
load
Instance method. Given an EID, and, optionally, a timestamp, loads a single privhistory record into the object, rewriting whatever was there before. Returns a status object.
insert
Instance method. Attempts to INSERT a record into the 'privhistory' table. Field values are taken from the object. Returns a status object.
delete
Instance method. Deletes the record. Returns status object.
FUNCTIONS
get_privhistory
Given a database handle, an EID, and an optional tsrange, return the history of privilege level changes for that employee over the given tsrange, or the entire history if no tsrange is supplied. The history is returned as a reference to an array of privhistory
objects. Returns undef if nothing is found.
AUTHOR
Nathan Cutler, <presnypreklad@gmail.com>