Scroll to navigation

HTML::FormFu::Deflator::PathClassFile(3pm) User Contributed Perl Documentation HTML::FormFu::Deflator::PathClassFile(3pm)

NAME

HTML::FormFu::Deflator::PathClassFile - Deflator for Path::Class::File objects

VERSION

version 2.07

SYNOPSIS

    $form->deflator( PathClassFile => 'file' )
        ->relative( 'root' );
    ---
    elements:
        - type: Text
          deflator:
              - type: PathClassFile
                relative: root

DESCRIPTION

Deflator for Path::Class::File objects.

There are three types of deflation:

Set this to 1 to deflate to a relative path. Anything else than 1 specifies the directory to use as the base of relativity - otherwise the current working directory will be used.
Set this to 1 to deflate to an absolute path. Anything else than 1 specifies the directory to use as the base of relativity - otherwise the current working directory will be used.
Set this to 1 to get the name of the file without the directory portion.

As you cannot set values for a File element, this deflator will only work on regular form elements.

AUTHOR

Moritz Onken, "onken@houseofdesign.de"

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Carl Franks <cpan@fireartist.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Carl Franks.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2019-01-12 perl v5.28.1