Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Autodia::Handler::PHP(User Contributed Perl DocumentatAutodia::Handler::PHP(3)

NAME
       Autodia::Handler::PHP - 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.

perl v5.24.1			  2010-02-18	      Autodia::Handler::PHP(3)

NAME | INTRODUCTION | CONSTRUCTION METHOD | ACCESS METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Autodia::Handler::PHP&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help