Class UNL_TidyTemplate
Class which provides basic functionality for Tidy'ing a template.
Located in /TidyTemplate.php (line 28)
after checking the files, this will contain an associative array of files and their validation status valid=true|false
Array of pages fixed by TidyTemplate.
Could not fix these files, but did what we could.
Checks if the file is using the templates.
- string $uri: URI or local filename of the page.
- &$uri
Scans a snippet of HTML and returns an array of UNL_DWT_Region
- string $html
- &$html
returns the name of the template file used.
- string $html
- &$html
Determines if the HTML page is using the UNL Templates.
- string $html
- &$html
Checks if a file has the correct extension.
- string $file
- &$file
Takes an array of UNL_DWT_Region and populates a UNL_Template with the region values.
- UNL_Template $template
- array $regions
- &$template
Will tidy up a file. First checks if it is a Template file, then calls tidyTemplateHTML if it is a Tidy File.
- string $file
Will run tidy on a snippet of html.
- string $string
- $options
This will tidy up all the template files given.
- array $afiles: array of filenames.
Runs tidy on the template html.
- string $html
- string $file: filename
- &$html
- &$file
Writes out a template file to the given filename, after first creating a backup copy, named $file.bak
- string $file
- UNL_Template $template
- &$file
- &$template
Documentation generated on Wed, 12 Aug 2009 12:59:49 -0500 by phpDocumentor 1.4.2




