PHP Classes

File: info

Recommend this page to a friend!
  Classes of bmpc   Gallery   info   Download  
File: info
Role: ???
Content type: text/plain
Description: Information
Class: Gallery
This class creates a table "gallery" from an array
Author: By
Last change:
Date: 22 years ago
Size: 801 bytes
 

Contents

Class file image Download
Gallery Class by bmpc@netcabo.pt This class generates a table with info from an array. User can specify the number of columns per line the table will have. The "show" method creates the table an has the following structure: show ( content array, border, max columns per line, table bg color ) border defaults to: 0 max columns per line defaults to: 10 table bg color defaults to: FFFFFF Debug: If you wish the class to echo a little debug message if the array is empty, just send 1 in the call to the constructor, like: $o_gallery = new gallery ( 1 ); That will output the default message ("Array is empty"). If you want to specify your own message, just send it as the second parameter to the constructor: $o_gallery = new gallery ( 1, "O array está vazio" );