Apache-Wyrd
view release on metacpan or search on metacpan
Wyrd/Input.pm view on Meta::CPAN
#presumeably, an impossible value will not be rendered as set by the
#browser on the form at all.
$value = $self->{'_datum'}->get($value);
$self->{'value'}=$value unless ($self->_flags->reset);
}
=pod
=item (void) C<_parse_options> (void)
_parse_options looks to the B<options> attribute, which may be explicit
as a comma/whitespace delineated list or built up by sub-objects (see
C<Apache::Wyrd::Input::Opt>) in order to determine what options to give
to the datum object. If this value is already a hashref or arrayref, it
does no further processing. Otherwise it attempts to separate the words
of the options attribute, using an optional regexp under the "delimiter"
attribute.
=cut
sub _parse_options {
Wyrd/Interfaces/Columnize.pm view on Meta::CPAN
$self->_data($data);
}
=head1 DESCRIPTION
Arranges a given array of items into a table based on the number found
in the Wyrd's C<columns> attribute.
Currently, the interface also will interpret the C<style> attribute of
the Wyrd to be included as the named style of the table data (TD) tags
it uses to build the table. It also looks to the C<cellpadding> and
C<cellspacing> attributes to pass to the enclosing table. These
criteria are under review may change in the future.
=head1 HTML ATTRIBUTES
=item columns
The number of columns the table will consist of. The table will be
line- broken based on this number of columns.
Wyrd/Interfaces/Setter.pm view on Meta::CPAN
($hash, $temp) = $self->_setter_defaults($hash, $temp);
$temp = $self->_regexp_conditionals($hash, $temp);
$temp = $self->_setter_replacements($hash, $temp);
return $temp;
}
=pod
=item (scalar) C<_clear_set> ([hashref], [scalar])
Same as _set, but wipes anything remaining that looks like a placemarker.
=cut
sub _clear_set {#clear out any unset values.
my ($self, $hash, $temp) = @_;
($hash, $temp) = $self->_setter_defaults($hash, $temp);
$temp = $self->_clear_regexp_conditionals($hash, $temp);
$temp = $self->_setter_replacements($hash, $temp);
$temp =~ s/\$:[a-zA-Z_0-9]+//g;
return $temp;
Wyrd/Interfaces/Setter.pm view on Meta::CPAN
}
$temp = $self->_regexp_conditionals($hash, $temp);
return $self->_setter_replacements(\%newhash, $temp);
}
=pod
=item (scalar) C<_text_set> ([hashref], [scalar])
More text-ish and perl-ish. If the placemarker is undefined OR false,
it is not interpreted. Anything else that looks like a placemarker
after interpretation is finished is wiped out. Generally safe for output
directly to web pages.
=cut
sub _text_set {
#Like "_clean_set", but also interprets arrays and uses the _clear_set.
#used for outputting directly to web pages
my ($self, $hash, $temp) = @_;
($hash, $temp) = $self->_setter_defaults($hash, $temp);
Wyrd/Site/Widget.pm view on Meta::CPAN
<BASENAME::Page>
<BASENAME::SampleWidget />
</BASENAME::Page>
=head1 DESCRIPTION
Widgets are a generic class of objects which work with
C<Apache::Wyrd::Site::Page> Wyrds, primarily to generate content on a page
which may change through time and viewings. This makes the indexing of
pages problematic, since a Page object by default looks only to its own
file modification date to determine if it has been changed and needs
re-indexing. A Widget will keep track of its own content in a similar
way as the page (see C<Apache::Wyrd::Site::WidgetIndex>), triggering an
update in its parent Page Wyrd when it's content changes. It does this
by changing the (internal) modification time value of the parent to the
current time as defined by the builtin C<time()> call.
So, if you want content from external sources to be indexed as a page is
indexed, the wyrd which generates the content should be a sub-class of
C<Apache::Wyrd::Site::Widget>.
( run in 1.383 second using v1.01-cache-2.11-cpan-64827b87656 )