Nexista_FoundryThis class is reponsible for building a site/application based on desired sitemap and configuration settings.
The build process creates a compiled php file from the sitemap definition as well as the necessary file to handle the logic of presenting these files based on request.
A typical build would output:
Located in /kernel/foundry.php (line 70)
void
configure
(string $master, [string $local = null], [string $mode = null], [ $config_filename = 'config.xml'])
static singleton (line 749)
Returns gate prepend code
buildGates (line 322)
Parses the sitemap, calling build process for each gate
buildLoader (line 195)
Builds the loader file (i.e. index.php)
This method creates a loader file based on config settings. This file is used as the 'entrance' file for the site, loading the sitemap and appropriate gate file.
buildSitemap (line 439)
Compiles the final sitemap file
This method takes $this->sitemap array which contains all the gate info and builds an if/else condition map out of it. This file will be used as the sitemap for the site
configure (line 132)
Read and writes the application config data
This method loads the config data that holds the applciation parameters such as paths, location of sitemap, session preferences, db connections, etc... Some of this data will be written directly in the gate files during the compile process. It takes the config xml and ouputs it as combnined xml file for runtime.
getCompilePath (line 179)
Returns the path to the compile directory
getSitemapPath (line 166)
Returns the path to the sitemap Useful for checking the mod time for required rebuilds
Documentation generated on Tue, 11 Mar 2008 23:23:03 -0400 for Nexista 0.2.0