Pinwheel::Model::Base - Base class for PinWheel models
# Given $obj which is some PinWheel model... $obj->has_key($column_name); $column_names = $obj->keys; # unordered array ref $value = $obj->get($key); $sql_param = $obj->sql_param; @route_params = $obj->route_param;
Returns true iff $obj has a key named $key. If the column hasn't been fetched yet, has_key returns false.
$obj
$key
has_key
Return an (unordered) list of the current data keys in the model object. This only includes the columns where data has been fetched.
TODO, document me.
Turns $obj into a SQL query parameter; see Model.
Default: $obj->id.
$obj->id
Turns $obj into route parameter(s); see Mapper.
A&M Network Publishing <DLAMNetPub@bbc.co.uk>
To install Pinwheel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pinwheel
CPAN shell
perl -MCPAN -e shell install Pinwheel
For more information on module installation, please visit the detailed CPAN module installation guide.