Dynamator Pure HTML for every page generation technology.
           

Dynamator File for PHP


Contents

Description
Identification

DESCRIPTION

This document describes the language-specific format and code generation behavior of a Dynamator File with language specified as "php".

A Dynamator File with a root element of "<dynamator language="php">" identifies a file containing transformations to be applied to an HTML or XML template in order to produce a PHP source file (i.e. a file with filetype ".php"). Dynamator applies the Dynamator file to an HTML or XML file (the "template") to create a PHP file that outputs an HTML or XML file with structure corresponding to the template and behavior specified by the Dynamator file.

for

The 'for' element of a Dynamator file for PHP has the following structure:

<for>
    for-statement-remainder
</for>

The content of the 'for' element is the parenthesized 'for' text. The text is treated as CDATA; that is, it may contain special characters such as '<'. The parentheses may be omitted.

The collection form of the 'foreach' element in a Dynamator file for PHP has the following structure:

<for>
    foreach-statement-remainder
</for>

foreach

The content of the foreach element is the parenthesized 'foreach' text. The text is treated as CDATA; that is, it may contain special characters such as '<'. The parentheses may be omitted.

For example, the element:

<foreach>$entries as $key => $value</foreach>
generates:
foreach ( $entries as $key => $value )
{
    ...
}

SEE ALSO

dynamate, Dynamator File


IDENTIFICATION
Author: Jay Dunning
Version: 1.5
Copyright: 2002-2004, Jay Dunning