PHP Classes

File: listtemplate.php

Recommend this page to a friend!
  Classes of J.B.  >  Simple Object  >  listtemplate.php  >  Download  
File: listtemplate.php
Role: Auxiliary script
Content type: text/plain
Description: class ListTemplate provides an easy way to display lists of objects, it extends SimpleTemplate and shows yet another use of class SimpleObject
Class: Simple Object
Base class with common variable access functions
Author: By
Last change:
Date: 18 years ago
Size: 540 bytes


Class file image Download
class ListTemplate extends SimpleTemplate {
$items; /* SimpleIterator */
function ListTemplate(&$items) {
$this->items =& $items;
display($list_template,$item_template) {
$items =& $this->items;
            while (
$items->next() ) {
$item_tpl =& new SimpleTemplate($items->export());

For more information send a message to info at phpclasses dot org.