CatalystX::Usul::TraitFor::Model::QueryingRequest - Creates a query request object
Describes v0.16.$Rev: 1 $
package YourApp::Model::YourModel; extends q(CatalystX::Usul::Model); with q(CatalystX::Usul::TraitFor::Model::QueryingRequest);
Creates a CatalystX::Usul::QueryRequest object and on demand a Data::Validation object
Requires; context and usul attributes
context
usul
Defines the following attributes
Hash ref which defaults to { encoding => $_[ 0 ]->encoding }
{ encoding => $_[ 0 ]->encoding }
Defaults to CatalystX::Usul::QueryRequest
An instance of CatalystX::Usul::QueryRequest
Loadable class which defaults to Data::Validation
$self->check_field( $id, $val );
Expose "check_field" in Data::Validation
$self->check_field_wrapper;
Extract parameters from the query and call "check_field". Stash the result
$fields = $self->check_form( \%fields );
Expose "check_form" in Data::Validation
$request_body = $model_obj->deserialze_request;
Call the deserialize method on the current view
$query_request_object = $self->_build_query;
Create in instance of CatalystX::Usul::QueryRequest. Uses the current request object so this is called to instantiate the query attribute at the end of build_per_context_instance
query
build_per_context_instance
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.