PHP Classes

PHP DAL Generator: Generate classes to access MySQL table records

Recommend this page to a friend!
  Info   View files Example   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 288 This week: 1All time: 7,515 This week: 560Up
Version License PHP version Categories
sistema-cab 1.0GNU Lesser Genera...5.3PHP 5, Databases, Code Generation
Description 

Author

This package can generate classes to access MySQL database table records.

It takes a given MySQL database and a list of tables and generates the code of classes with functions and variables to retrieve and manipulate table records as objects.

The class also generates a database abstraction layer class with CRUD functions.

Picture of Jose Antonio Valle Minjares
Name: Jose Antonio Valle ... <contact>
Classes: 1 package by
Country: Mexico Mexico
Age: 32
All time rank: 385548 in Mexico Mexico
Week rank: 416 Up8 in Mexico Mexico Up

Example

<?php
 
require "autocargador.php";

 
$database_server = "";
 
$user_database = "";
 
$user_pass = "";
 
$name_database = "";
 
$database_type = "mysql";

 
$cab = new GeneradorCab($database_server, $user_database ,$user_pass,$name_database,$database_type);
 
 
$tables = array("table_1",
 
"table_2");
 
 
$cab->seleccionarTablas($tables);
 
$cab->generarObjetos();
 
$cab->generarCapaAbstraccion();
 
$cab->generarObjetoDatabase();


Details

SISTEMA CAB

CAB - Capa de Abstraccion de Base de datos

Copyright (c) 2014 Antonio Valle

==ENGLISH==

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

The open source code of CAB project is in: https://github.com/avallem/sistema_cab

The primary support for CAB is the Help forum on the project home page.

If you have any questions or comments, please email:

Antonio Valle avalle@interactivedesign.com.mx http://interactivedesign.com.mx/cab

Interactive Design http://www.interactivedesign.com.mx

<------------------------------------------------------------------------------->

==ESPAÑOL==

Esta biblioteca es software libre; puedes redistribuirlo y / o modificarlo bajo los términos de la GNU Lesser General Public Licencia publicada por la Fundación para el Software Libre; ya sea la versión 2.1 de la Licencia, o (a su elección) cualquier versión posterior.

Esta biblioteca se distribuye con la esperanza de que sea útil, pero SIN NINGUNA GARANTÍA; ni siquiera la garantía implícita de COMERCIALIZACIÓN o IDONEIDAD PARA UN PROPÓSITO PARTICULAR. Consulte la GNU Lesser General Public License para más detalles.

El código fuente abierto del proyecto CAB se encuentra en: https://github.com/avallem/sistema_cab

El apoyo principal para CAB es el Foro de ayuda en la página web del proyecto.

Si usted tiene alguna pregunta o comentario, por favor escriba a:

Antonio Valle avalle@interactivedesign.com.mx http://interactivedesign.com.mx/cab

Interactive Design http://www.interactivedesign.com.mx

<------------------------------------------------------------------------------->

==DETAILS==

This software provide help to build a basic Database Abstraction Layer. You only will setup the parameters to connect with the schemas of Database model.

Setup this parameters on index file: Database Server User Database Pass User Name of Database Schemas/Tables that you need to generate Objects and DAL Optional (No necessary) Database Type

==DETALLES==

Este software proporciona ayuda para construir una capa de abstracción de base de base de datos. Sólo se configurará los parámetros para conectar con los esquemas de modelo de base de datos.

Configuración de estos parámetros en el archivo de index: Servidor de Base de Datos Usuario de Base de Datos Clave de Usuario Nombre de la Base de Datos Opcional (No es necesario) Tipo de base de datos Esquemas / Tablas que usted necesita para generar objetos y CAB


  Files folder image Files  
File Role Description
Files folder imagegenerador (1 directory)
Accessible without login Plain text file autocargador.php Aux. Configuration script
Accessible without login Plain text file index.php Example Configuration script
Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  generador  
File Role Description
Files folder imagecab (1 file, 2 directories)

  Files folder image Files  /  generador  /  cab  
File Role Description
Files folder imageapp (1 directory)
Files folder imageincs (7 files)
  Plain text file GeneradorCab.php Class Class source

  Files folder image Files  /  generador  /  cab  /  app  
File Role Description
Files folder imageconfig (1 file)

  Files folder image Files  /  generador  /  cab  /  app  /  config  
File Role Description
  Accessible without login Plain text file db.php Conf. Configuration script

  Files folder image Files  /  generador  /  cab  /  incs  
File Role Description
  Accessible without login Plain text file abstraccion.class.php Data Auxiliary script
  Accessible without login Plain text file autocargador.php Data Configuration script
  Accessible without login Plain text file controlador.class.php Data Auxiliary script
  Plain text file Database.php Class Class source
  Plain text file DatabaseException.php Class Class source
  Accessible without login Plain text file index.class.php Aux. Auxiliary script
  Accessible without login Plain text file modelo.class.php Data Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:288
This week:1
All time:7,515
This week:560Up