PHP Classes

Packages of Thiemo Kreuz

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Thiemo Kreuz (2)  >  Mission progress status  >  Reputation  
Picture of Thiemo Kreuz
Name: Thiemo Kreuz <contact>
Classes: 2
Country: Germany Germany
Age: 49
All time rank: 27612 in Germany Germany
Week rank: 195 Up8 in Germany Germany Up
All time users: 9170
Week users: 0
Innovation award
Innovation award
Nominee: 1x

Winner: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image TM::Apeform  
A very abstract web form builder and processor
TM::Apeform creates self repeating web forms, so called "Affenformulare" (German for "ape forms"). If a million apes is typing into the form (that's the "Infinite monkey theorem"), the form is displayed again and again as long as it contains errors.

- The usage is not different from the creation, validation and processing of the form values that the user entered. Everything is done in a single script.
- The class hides the access to POST and global variables and simply returns the submitted values.
- It offers an easy way to handle input errors (checking valid email addresses for example).
- It supports all form elements including radio buttons, select boxes, file upload fields and so on.
- It provides an own templating system, so you do not have to deal with HTML at all.
- It creates labels and access keys according to HTML 4 standard and returns XHTML compatible output.
- In addition you can add JavaScript handlers to any form element.

TM::Apeform is optimized to be used with the minimum amount of source code. For example, the following script is a full functional form mailer.

<?php
require_once("Apeform.class.php");
$form = new Apeform();
$message = $form->textarea("Your Message");
$form->submit("Send Email");
$form->display();
if ($form->isValid()) mail("to@example.com", "Subject", $message);
?>

  Files folder image TM::MyCSV  
PHP Programming Innovation award winner
August 2009
Winner


Prize: One copy of the Zend Studio
Manage CSV files like database tables
This package can be used to manage CSV text files like database tables. The class combines most benefits of SQL tables and PHP arrays including a powerfull method for sorting rows.

The class manages CSV files with support for storing, retrieving and deleting rows of data and also to add and remove columns from those files.

Inserted row identifier column values may be auto-incremented. The row retrieval is binary safe, may obey a given column sorting criteria similar to SQL ORDER BY clause, limit the number of retrieved rows similar to LIMIT clause, and support joins like with SQL LEFT OUTER JOIN.

A separate sub-class allows importing and exporting data to MySQL database tables.

Another class can generate a HTML forms based administration interface for accessing and editing data from a directory of CSV files, as well as alter their columns.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z