/wtv2/code - Core Code

/wtv2/code contains the core code of WebTemplate. The core code of WebTemplate makes up the WebTemplate API. It contains the following files:

Filename Description
config.php Config Settings For WebTemplate - location of folders, database username, etc
wt.php Code for the global WebTemplate object, $GLOBALS["WT"], initialisation code.
wtNode.php Code for the WTNode Class which is registered to the wtNode Type. All other Node Type classes extend this class. This file contains the code to set and get attributes of a node and perform moderation if it is enabled.
wtType.php WTType Class for the wtType Node Type. This code will manage the database tables when Node Types are defined/changed/deleted 
wtAttribute.php WTAttribute Class for the wtAttribute Node Type. This code will alter the relevant database table when an attribute is added/changed/deleted from a node type.
wtContact.php Code for the WTContact Class. Manages basic contact related functions.
wtSession.php Manages WebTemplate sessions.
wtIndex.php index.php of a site will include this file after defining a site id, site database and database username/password. This file will process an incoming request from the browser and provide the relevant response.
wtFile.php Contains the WTFile class, performs functions for files stored in the File Library
wtPage.php The WTPage class for the Page Node Type. When a request comes in for a page, this class is responsible for rendering the correct page.
wtTemplate.php The WTTemplate class for the Template Node Type.  The code in this file is responsible for compiling WebTemplate templates into PHP code.
wtTags.php The code for the angle bracket webtemplate tags, eg <wt:list>
wtFormatting.php The code for the formatting functions to be used in templates, eg [wt:value|formattingFunction]
wtMail.php The code for the WTMail class
wtForm.php Code to process form submissions
wtFormField.php Code to create the database fields to store form submissions
wtConfig.php Code for the WTConfig class. Used to set and get config for a site
wtXmlSitemap.php Generates sitemaps for sites
wtProduct.php WTProduct class for the Product Node type. Manages basic product functions
wtCart.php WTCart class. A basic cart plus credit card processing
wtOrder.php WTOrder class for the wtOrder Node type. Manages orders, creates emails for orders.