View on
MetaCPAN
Barry King > Apache-Wyrd > Apache::Wyrd::Lookup

Download:
Apache-Wyrd-0.98.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.98   Source  

NAME ^

Apache::Wyrd::Lookup - Wyrd for returning an SQL query result

SYNOPSIS ^

    <BASENAME::Lookup joiner=" : ">
      select * from people
    </BASENAME::Lookup>

    <BASENAME::Lookup
      query="select name from contact where name is like 'S%'">
      <b>$:name</b>
      <BASENAME::Var name="field_joiner"><BR></BASENAME::Var>
    </BASENAME::Lookup>

HTML ATTRIBUTES

joiner

what to join multiple values with. Defaults to ", ". If either this or record_joiner is set to "CSV", comma separated value format will be used. For the special characters, "CR" or "\r" will give carriage return, and LF or "\n" will give a linefeed, the same for CRLF and "\r\n".

field_joiner

an alias for joiner

no_results

what HTML text to display when there are no results (optional).

record_joiner

what to join multiple values with. Defaults to newline.

flags
nojoin

Sets the record and field joiner to the null string.

PERL METHODS

(format: (returns) name (accepts))

(scalar) _default_joiner (void)

method to be overridden in a subclass to change the default value for joiner.

(scalar) _default_record_joiner (void)

method to be overridden in a subclass to change the default value for joiner.

BUGS/CAVEATS/RESERVED METHODS ^

Reserves the _format_output and _generate_output methods.

AUTHOR ^

Barry King <wyrd@nospam.wyrdwright.com>

SEE ALSO ^

Apache::Wyrd

General-purpose HTML-embeddable perl object

LICENSE ^

Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GPL.

See LICENSE under the documentation for Apache::Wyrd.

syntax highlighting: