Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Jifty::Param
Parameters for Jifty actions

Jifty::Param - Parameters for Jifty actions


NAME

Jifty::Param - Parameters for Jifty actions


DESCRIPTION

Describes a parameter to a Jifty::Action object. Do not construct this by hand -- use the Jifty::Param::Schema manpage in the action package to declare parameters instead.

accessors

Although this class is not derived from Jifty::Web::Form::Field, it does share the accessors from it; see the Jifty::Web::Form::Field manpage, for the list of possible keys that each parameter can have.

In addition to the list there, you may use these additional keys:

constructor
A boolean which, if set, indicates that the argument must be present in the arguments passed to create the action, rather than being expected to be set later.

Defaults to false.

valid_values
An array reference. Each element should be either:
  • A hash reference with a display field for the string to display for the value, and a value field for the value to actually send to the server.

  • A hash reference with a collection field containing a the Jifty::Collection manpage, and display_from and value_from fields containing the names of methods to call on each record in the collection to get display and value.

  • A simple string, which is treated as both display and value.

available_values
Just like valid_values, but represents the list of suggested values, instead of the list of acceptable values.

sort_order
An integer of how the parameter sorts relative to other parameters. This is usually implicitly generated by its declaration order.

new

Creates a new the Jifty::Param manpage object. Note that unlike the Jifty::Web::Form::Field manpage, the object is never magically reblessed into a subclass. Should only be called implicitly from a the Jifty::Param::Schema manpage declaration.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy