| CatalystX-Usul documentation | view source | Contained in the CatalystX-Usul distribution. |
CatalystX::Usul::Plugin::Model::StashHelper - Convenience methods for stuffing the stash
0.3.$Revision: 576 $
package CatalystX::Usul; use parent qw(Catalyst::Component CatalystX::Usul::Base); package CatalystX::Usul::Model; use parent qw(CatalystX::Usul CatalystX::Usul::StashHelper); package YourApp::Model::YourModel; use parent qw(CatalystX::Usul::Model);
Many convenience methods for stuffing/resetting the stash. The form widget definitions will be replaced later by the form building method which is called from the HTML view
Stuff some content into the stash so that it will appear in the append div in the template. The content is a hash ref which will be interpreted as a widget definition by the form builder which is invoked by the HTML view. Multiple calls push the content onto a stack which is rendered in the order in which it was stacked
Generates the data for the popup chooser window which allows a data value to be selected from a list produced by some query. It is intended as a replacement for a popup menu widget where the list of values would be prohibitively long
Stringifies the passed error object, localises the text, logs it as an error and calls add_result to display it at the top of the sdata div
Localises the message text, creates a new error object and calls add_error
Create a widget definition for a form field
Stuffs the stash with the data for the page header
Adds the result of forwarding to an an action. This is the result div in the template
Localises the message text and calls add_result
Adds the sequence of links used in search page results; first page, previous page, list of pages around the current one, next page, and last page
$model->check_field_wrapper;
Extract parameters from the query and call check_field. Stash the result
Clears the stash of the widget data used by the region appended to the main data store
Groups the methods that clear the stash of data not used in a minority of pages
Initialises the sdata div contents. Called by /stash_content on
first use
Clears the stash of the quick links navigation data
Clears the stash of messages from the output of actions
Stashes the data used by HTML::FormWidgets to throw fieldset around a group of fields
Returns a content hash ref that renders as a clickable image anchor. The link returns to the web servers default page
Returns the Javascript fragment that will open a new window in the web browser
Create a KinoSearch results page
Creates a "simple" page from information stored in the configuration files
Pushes the content (usually a widget definition) onto the specified stack
Calls stash_content specifying the sdata stack
Adds some meta data to the response for an Ajax call
None
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
Peter Flanigan, <Support at RoxSoft.co.uk>
Copyright (c) 2008 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
| CatalystX-Usul documentation | view source | Contained in the CatalystX-Usul distribution. |