BTDT::Model::Quota
Generic quotas for Jifty model objects.
Conveniently creates a quota record using a model OBJECT and an optional extra paramhash.
Conveniently loads a quota record using a model OBJECT and an optional extra paramhash.
Returns the object regulated by this quota.
Checks if adding INTEGER to the current usage will exceed cap.
Returns true or false.
Adds INTEGER to usage if there is enough quota left.
Returns true on success, false on failure.
Subtracts INTEGER from usage.
If current user can read the referenced object, then they can read the quotas. No one can created, update, or delete quotas unless they are a superuser.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.