Login   Register  
PHP Classes
elePHPant
Icontem

MySQL Ajax Database Access Layer - MADAL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Brent Rossen
Name: Brent Rossen <e-mail contact>
Packages: 4 Browse all classes by Brent Rossen Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 32
All time rank: 1082143 in United States United States
Week rank: 492 Up50 in United States United States Up


  Detailed description   Download .zip .tar.gz  
MADAL allows one to quickly generate ajax enabled web-pages.

MADAL is an Ajax based database access layer for MySQL written in PHP and Javascript. It generates PHP and Javascript/jQuery source code that is well documented, so you can use your IDE's auto-completion against database tables and fields. The documentation was designed with PHP Eclipse in mind, but should work for any IDE that recognizes PHP doc.

Downloading: PHP Classes has only example and main classes, for the full working code, please download from the Google code project link: http://madal.googlecode.com/files/madal.zip

Here's how simple using MADAL is:

$table_name->print_FieldName_input_setter();

This will give you an input field (text, checkbox, textarea, or datepicker) that updates the database FieldName of the row represented by $table_name onblur (see attached images). Pretty simple, right?

MADAL also generates Javascript objects that allow you to update the database based on your own custom fields.

For example:

Classroom2.set_capacity(33);
This will make an ajax call to the MADAL web service. Much simpler than writing a custom update page for every field of the database, and custom classes for every table.

Core components:

* PHP
* MySQL
* Javascript (with jQuery)

Features:

* PHP Model - generates a set of PHP classes that mirror your database format
* Javascript Model - generates a set of javascript/jQuery classes that mirror your database and allows for easy client side display and modification
* MADAL Web Service - generates an easy to use web-service for accessing your database (includes instructions for implementing security)
* Easy ajax - simply print the input field and you've got an ajax enabled field
* Field validation - input fields are validated for their type
* jQuery ui themes - MADAL includes the whole set of default jQuery ui themes for easy styling of your pages. You can also add more using the jQuery ui theme roller.
* Optimistic concurrency - if more than one user is accessing a piece of data, and one of the users updates a field, then the other user updates the same field (but has out of date information), the second user will receive a notification that the field is in use, and the page will auto-refresh thus retrieving the most up-to-date data.

  Classes of Brent Rossen  >  MySQL Ajax Database Access Layer - MADAL  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: MySQL Ajax Database Access Layer - MADAL
Base name: madal
Description: Generate code to manage MySQL tables using AJAX
Version: -
PHP version: 5.2
License: MIT/X Consortium License
All time users: 1551 users
All time rank: 2229
Week users: 3 users
Week rank: 948 Up
 
  Groups   Screenshots Screenshots   Freshmeat project  
  Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Code Generation Compilers and tools that generate code automatically View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes

  Files folder image Screenshots  
Example interface generated by MADAL
File Role Description
Accessible without login Image file example_interface_simple Screen Example interface generated by MADAL
Accessible without login Image file example_interface_detailed Screen Example interface generated by MADAL with relations
Accessible without login Image file example_interface_db_schema Screen The database schema for the examples
Accessible without login Image file date_example.png Screen An example of using the date dialog (automatic for date fields)
Accessible without login Image file wysiwyg_example.jpg Screen WYSIWYG Editor Example


  Freshmeat project  
MySQL Ajax Database Access Layer - MADAL
Project record: madal
Popularity score: 18.22
Vitality score: 33.91

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
Link Description
Virtual People Factory Web application for making virtual human conversational models
The Art of Sarah Whitmire Art website that uses MADAL for it's administration
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Google Code Project Full source can be retrieved from the code project svn

  Files folder image Files  
File Role Description
Files folder imageModelIncludes (1 file)
Plain text file example_usage_simple Example A simple example using the MADAL db
Plain text file example_usage_relational Example Example showing the display of several related tables (see images for screenshot)
Plain text file ClassGenerator.php Class Main class that generates PHP model Classes
Plain text file ClassGeneratorJavascript.php Class Main class that generates javascript class objects. Depends on ClassGenerator.
Plain text file DBStructure.php Class Manages the generation of both PHP and javascript classes, as well as copying dependencies
Plain text file GenerateMVC.php Appl. File to call to start the code generation process
Plain text file web_service.php Aux. The web-service used by the javascript classes

  Files  /  Files folder image ModelIncludes  
File Role Description
  Plain text file DBElement.php Class Parent class for all db model classes

Download all files: madal.tar.gz madal.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.