Recommend this page to a friend! |
Download .zip |
Info | View files (10) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2010-06-11 (6 years ago) | Not enough user ratings | Total: 786 | All time: 4,154 This week: 871 |
Version | License | PHP version | Categories | |||
liber-orm 1.0 | GNU General Publi... | 5.0 | PHP 5, Databases, Design Patterns |
Description | Author | |||||||||||||
This class can be used to store and retrieve objects as database records. |
|
ENGLISH To Run demo: 1. Run dummy.sql on your MYSQL Server. 2. Change the values on the config.ORM.php config file. 3. run demo.php on your browser :) To config: 1. Change configurations parameters on config.ORM.php configuration file. 2. The parameter names are self descriptive. To use: 0. The key of this ORM solution is to respect the nomenclature. 1. Create you domain objects (with setters and getters, you may add any aditional logic to your objects). 2. Create your map for each domain object. 3. If you need a different driver (not MySQL), develop it :) 4. You are ready to go :) SPANISH Para ejecutar la demostración: 1. Ejecutar dummy.sql en su servidor MySQL. 2. Cambiar los valores del archivo de configuración config.ORM.php. 3. Ejecutar demo.php desde su navegador :) Para configuración: 1. Cambiar los parámetros de configuración en el fichero de configuración config.ORM.php. 2. Los nombres de los parámetros son auto descriptivos. Para usar: 0. La clave de esta solución ORM es la de respetar la nomenclatura. 1. Cree que los objetos de dominio (con setters y getters, usted puede agregar cualquier lógica adicional a los objetos). 2. Crear un mapa para cada objeto de dominio. 3. Si usted necesita un controlador diferente (diferente de MySQL), desarrollarlo ponerla en práctica:) 4. Ya está listo para usarlo :) |
Files |
File | Role | Description |
---|---|---|
class.Driver.php | Class | Abstract driver |
class.Dummy.php | Class | Object example |
class.Dummy_Map.php | Class | Map example |
class.Map.php | Class | Abstract Map |
class.MySQL_Driver.php | Class | MySQL driver implementation |
class.ORM.php | Class | ORM class |
config.ORM.php | Conf. | Configuration file |
demo.php | Example | Example script |
dummy.sql | Data | DB creation script |
readme.txt | Doc. | DB creation script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|