HTML_Template_PHPLIB
[ class tree: HTML_Template_PHPLIB ] [ index: HTML_Template_PHPLIB ] [ all elements ]

Class: HTML_Template_PHPLIB_Tool

Source Location: /HTML_Template_PHPLIB-1.6.1/HTML/Template/PHPLIB/Tool.php

Class Overview


Command line tool to use the HTML_Template_PHPLIB validator and generator.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]
Command line tool to use the HTML_Template_PHPLIB validator and generator.


[ Top ]


Method Detail

__construct (Constructor)   [line 31]

HTML_Template_PHPLIB_Tool __construct( array $args)

Constructor

Parameters:

array   $args   —  Cmdline arguments

[ Top ]

dieHard   [line 94]

void dieHard( string $strMessage, int $nExitCode)

Echoes the message and exist php with the given exit code

Parameters:

string   $strMessage   —  Message to display
int   $nExitCode   —  Exit code

[ Top ]

doGenerate   [line 173]

void doGenerate( array $args)

Generates PHP code for the given template file

Parameters:

array   $args   —  Command line arguments

[ Top ]

doHelp   [line 107]

void doHelp( )

Prints the help message to stdout

[ Top ]

doValidate   [line 131]

void doValidate( array $args)

Validates the files given on the cmdline

Parameters:

array   $args   —  Command line arguments (files)

[ Top ]

getAction   [line 61]

string getAction( &$args, array $args)

Returns the action to execute
  • Return: Action to execute

Parameters:

array   $args   —  Array of command line arguments
   &$args   — 

[ Top ]

run   [line 45]

void run( )

Start the tool

[ Top ]


Documentation generated on Tue, 10 Dec 2019 05:16:06 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.