Category Archives: Classes

Oscar XML

Package:
Oscar XML
Summary:
Create and manipulate XML documents with DOM
Groups:
PHP 5, XML
Author:
de saint leger christophe
Description:
This class can be used to create and manipulate XML documents with DOM document extension.

It can create XML document from scratch or load it from a file or a string.

The class can perform several types of operations with the document elements like: searching for elements, adding, updating or deleting elements, adding, updating or deleting attributes from tags.

The manipulated document can be returned as a string.

The comments in the class are in French.


Auto DB Up

Package:
Auto DB Up
Summary:
Update a MySQL database from SQL files
Groups:
Databases, PHP 5, Systems administration
Author:
Alexandru Trandafir Catalin
Description:
This class can be used to update a MySQL database from SQL files.

It can scan a given directory for files with numbered .sql name extension.

The class reads the number of the currently installed database version.

It reads the SQL statements from the SQL files the higher number than the last installed version and executes the statements as queries to a MySQL database.


Form Validation

Package:
Form Validation
Summary:
Validate submitted form values according to rules
Groups:
Validation
Author:
M H Rasel
Description:
This class can be used to validate submitted form values according to rules.

It can take an associated array of values and a list of rules and error messages to validate each value in the array.

The class can return the list of fields and associated error messages when one or more values does not satisfy the validation rules.


Permutator

Package:
Permutator
Summary:
Generate permutations of elements of an array
Groups:
Algorithms, PHP 5
Author:
Shannon Wynter
Description:
This class can be used to generate permutations of elements of an array.

It takes an array as parameter and generate arrays with permutations of its elements.

The class calls a given callback function to process the generated permutation arrays in user defined way.


PHP Text Spinner

Package:
PHP Text Spinner
Summary:
Change words of a text with synonyms
Groups:
SEO, Text processing
Author:
Er. Rochak Chauhan
Description:
This class can be used to change words of a text with synonyms.

It can extract the words from a text and send requests to the FreeThesaurus.net site to obtain alternatives for the text words.

The class can replace the original words with some of the retrieved alternative words to make the text look different.


db_mysql

Package:
db_mysql
Summary:
MySQL database access wrapper
Groups:
Databases
Author:
Evgeniy Gennadevich
Description:
This class is a MySQL database access wrapper. It can:

- Establish database connections
- Execute SQL queries
- Retrieve the query results into arrays
- Retrieve the number of result rows or the number of row affected by the query
- Execute SQL SELECT, INSERT, UPDATE and DELETE queries from a list of parameters

The code and the comments are in Russian.


cliprz Connect Class

Package:
cliprz Connect Class
Summary:
Connect to a MySQL database example
Groups:
Databases, PHP 5
Author:
Youssef Esmail
Description:
This is a very simple class that is an example of how to connect to a MySQL database.

It can establish a connection to a given MySQL database server, choose the database to work with and close the database connection.


PHP Search MySQL Tables

Package:
PHP Search MySQL Tables
Summary:
Search for text in all tables of a MySQL database
Groups:
Databases, Searching, Utilities and Tools
Author:
Er. Rochak Chauhan
Description:
This class can be used to search for text in all tables of MySQL databases.

It can retrieve the list of tables and fields of a one or more MySQL databases.

The class can execute queries to perform searches for a given keyword in any of the fields of all records of all tables of the specified databases.


Cached Virtual Array

Package:
Cached Virtual Array
Summary:
Base class for implementing persistent arrays
Groups:
Data types, PHP 5
Author:
Igor
Description:
This is a base class for implementing persistent arrays.

It provides interfaces to access elements of arrays eventually stored in persistent data storage.

The actual implementation sub-classes should implement the functionality of storing and retrieving array data from persistent storage containers.


Powered by Gewgley