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.4.0a2/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 12]
Command line tool to use the HTML_Template_PHPLIB validator and generator.


[ Top ]


Method Detail

HTML_Template_PHPLIB_Tool (Constructor)   [line 14]

HTML_Template_PHPLIB_Tool HTML_Template_PHPLIB_Tool( $args)


Parameters:

   $args   — 

[ Top ]

dieHard   [line 76]

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 154]

void doGenerate( array $args)

Generates PHP code for the given template file

Parameters:

array   $args   —  Command line arguments

[ Top ]

doHelp   [line 89]

void doHelp( )

Prints the help message to stdout

[ Top ]

doValidate   [line 113]

void doValidate( array $args)

Validates the files given on the cmdline

Parameters:

array   $args   —  Command line arguments (files)

[ Top ]

getAction   [line 43]

string getAction( array &$args)

Returns the action to execute
  • Return: Action to execute

Parameters:

array   &$args   —  Array of command line arguments

[ Top ]

run   [line 27]

void run( )

Start the tool

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:10:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.