Delegate interface for the skin object.
The skin delegate provides the skin system with a way of extending the skin's capabilities. Essentially, the WFSkin object is a framework for building "themed" pages. The parts of each skin that are provided by the skin infrastructure can be easily customized using the skin delegate system.
The main web application mechanism always uses the skin delegate provided by WFApplicationDelegate. However, an application may have multiple skin delegates for multiple skinned usages. For instance, maybe you have a need to send skinned email, but the skins for email have a different setup than the normal web site. In this case, you could create a skin object and provide a specialized skin delegate to handle the skinnable email function.
You may also find that you need more template types besides "normal" and "raw". WFSkinDelegate allows you to manifest additional templateTypes(). Each skin you create for that WFSkinDelegate will of course need to implement all of the templateTypes() that the skinDelegate supports.
Located in /framework/WFSkin.php (line 72)
A delegate method to allow the delegate object to load default values for certain skin properties such as: skin, skinTheme, metaDescription, metaKeywords, title etc.
Example:
$skin->setSkin('exampleskin2'); $skin->setTheme('red'); $skin->setMetaDescription('This is the default description.'); $skin->addMetaKeywords(array('more', 'keywords')); $skin->setTitle('Page Title');
Retreive the "named" content from the skin delegate.
The "named content" mechanism is the way by which individual applications using this framework can add additional content sections for use in their skins. By default, only a HEAD and BODY section exist within the skin. Individual applications can use the named content mechanism to supply skin-specific information such as NAVIGATION LINKS, COPYRIGHT DISCLAIMERS, etc.
Get a list of all named content for the skin delegate.
Get a list of the additional template types (besides "normal" and "raw") that are supported by this skin.
Callback method which is called just before the skin is rendered.
This allows your skin delegate to calculate anything it might need to pass on to the skin for use in rendering.
Documentation generated on Thu, 17 Apr 2008 13:52:09 -0400 by phpDocumentor 1.4.1