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.0/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

HTML_Template_PHPLIB_Tool (Constructor)   [line 31]

HTML_Template_PHPLIB_Tool HTML_Template_PHPLIB_Tool( 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 178]

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

void doValidate( array $args)

Validates the files given on the cmdline

Parameters:

array   $args   —  Command line arguments (files)

[ Top ]

getAction   [line 61]

string getAction( array &$args)

Returns the action to execute
  • Return: Action to execute

Parameters:

array   &$args   —  Array of command line arguments

[ Top ]

run   [line 45]

void run( )

Start the tool

[ Top ]


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