Jifty::Record - Represents a Jifty object that lives in the database.
Jifty::Record is a kind of Jifty::Object that has a database representation; that is, it is also a Jifty::DBI::Record as well.
Jifty::Record
Takes an array of key-value pairs and inserts a new row into the database representing this object.
Override's Jifty::DBI::Record in these ways:
id
Returns the default primary key for record columns: 'id'. This routine short-circuits a much heavier call up through Jifty::DBI
Attempts to load a record with the named parameters passed in. If it can't do so, it creates a new record.
Should return true if the current user ($self-current_user>) is allowed to do RIGHT. Possible values for RIGHT are:
$self-
Called just before an object's create method is called, as well as before parameter validation. It is also passed the attributes that the object is trying to be created with, as the attributes aren't on the object yet to be inspected.
create
Called before any attribute is accessed on the object.
Called before any attribute is changed on the object.
Called before the object is deleted.
The default implementation returns true if the current user is a superuser or a boostrap user. If the user is looking to delegate the access control decision to another object (by creating a delegate_current_user_can subroutine), it hands off to that routine. Otherwise, it returns false.
delegate_current_user_can
Internal helper to call "current_user_can" with create.
Internal helper to call "current_user_can" with read.
read
Passed column as a named parameter for the column the user is checking rights on.
column
Internal helper to call "current_user_can" with update.
update
Internal helper to call "current_user_can" with delete.
delete
A method ripped from the pages of Jifty::DBI::Record so we could change the invocation method of hte collection generator to add a current_user argument.
Overrides Jifty::DBI::Record to check the delete ACL.
This is the SB function that is called when you fetch a value which REFERENCES a Record class. The only change from the SB code is the arguments to new.
REFERENCES
new
Returns a unique key for this application for the Memcached cache. This should be global within a given Jifty application instance.
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.