PHP Classes

File: english.txt

Recommend this page to a friend!
  Classes of Reiner Entzminger  >  PTAG  >  english.txt  >  Download  
File: english.txt
Role: ???
Content type: text/plain
Description: description
Class: PTAG
Tag library class
Author: By
Last change:
Date: 20 years ago
Size: 1,833 bytes


Class file image Download

Class for processing TagLibs within Templates.

These aren't ordinary Templates since the jobs of the Templates, this one shall be 
enlarged, completed or repeated be indicated, (almost) normal HTML tag.

Syntax: <ptag:tagname [parameter-1="value-1" [parameter-2="value-2" [...]]]>HTML-Text</ptag:tagname>
or         <ptag:tagname [parameter-1="value-1" [parameter-2="value-2" [...]]] />

The HTML text mentioned into syntax 1 can be enlarged or replaced. This said, there 
the mentioned HTML text could as well be a parameter (for example one SELECT instruction 
for a data base query).

By this Template class everybody is able to write further TagLibs and to use these in a 

The TagLib classes have one described specified erection, this one in the class "nameTag" 
more exactly is. As example I have enclosed two simple TagLibs. The TagLib "page" adds a 
table in which a top with a title is contained and at the end a copyright notice is distributed 
into the Template. The second Taglib produces a simple Link. Even much, much more complicated 
TagLibs can be programed such as data base queries with table editions, though.

New TagLibs are registered only within a table. You don't have about the functions "include" 
or is fetched "to require" in the program and no authority must be made of this. This takes 
the TagLib class for you.

About this TagLib a clear separation has been successful between representation and programming now.

Note: The TagLibs get from inside worn outly and in front of this the last to the outside to 
the first TagLib in a Template.

    <ptag:taglib3>HTML-Text<ptag:taglib4 /></ptag:taglib3>

<ptag:taglib5 />

Processing: taglib5, taglib4, taglib3, taglib2, taglib1
For more information send a message to info at phpclasses dot org.