Autodia::Handler::PHP(3pm)

Autodia::Handler::PHP3pm

Autodia handler for php

Introduction

Autodia::Handler::PHP is registered in the Autodia.pm module, which contains a hash of language names and the name of their respective language - in this case:

%language_handlers = ( .. ,
php => "Autodia::Handler::PHP",
.. );

%patterns = ( .. ,
php => \%php,
.. );

my %php = (
regex => '\w+\.php$',
wildcards => [
"php","php3","php4"
],
);

Construction method

use Autodia::Handler::PHP;

my $handler = Autodia::Handler::PHP->New(\%Config);

This creates a new handler using the Configuration hash to provide rules selected at the command line.

Access methods

$handler->Parse(filename); # where filename includes full or relative path.

This parses the named file and returns 1 if successful or 0 if the file could not be opened.

$handler->output(); # any arguments are ignored.

This outputs the output file according to the rules in the %Config hash passed at initialisation of the object and the template.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1–4.0
  2. 5.0
  3. 6.0
  4. 7–10
  5. 11
  6. 12–13

From autodia 2.14-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.