PHP Classes

App PHP Model Class: Map object variables to database table records

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-06-14 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 82 This week: 2All time: 9,836 This week: 88Up
Version License PHP version Categories
app-model 1.0.1The PHP License5PHP 5, Databases, Design Patterns
Description Author

This package provides a class to map object variables to database table records.

A base class performs several operations of models to store and retrieve model variables in a database table.

Applications can create sub-classes to configure specific model objects.

Currently, it can:

- Connect to a given database using a PDO object passed to the class

- Load a model object with a given identifier from the class constructor function

- Create or update model objects by assigning model class variables

- Provide automatic model class variable getter and setter functions

- Find model objects that match a given criteria

- Define relations with other model classes in the model sub-class

- Find related model objects that match a given criteria

- Etc.

Picture of SzpaQ
  Performance   Level  
Name: SzpaQ <contact>
Classes: 5 packages by
Country: Poland Poland

Details

Model

Model class Allows you to use model's classes and work with it on database instead of sending query every time

Usage

http://docs.dev-bot.pl/model.html

  Files folder image Files  
File Role Description
Files folder imageclasses (1 directory)
Files folder imageexample (3 files, 1 directory)
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  classes  
File Role Description
Files folder imageApp (1 file)

  Files folder image Files  /  classes  /  App  
File Role Description
  Plain text file Model.php Class Class source

  Files folder image Files  /  example  
File Role Description
Files folder imageModels (2 files)
  Accessible without login Plain text file db.sql Data Auxiliary data
  Accessible without login Plain text file loader.php Aux. Example script
  Accessible without login Plain text file test.php Example Example script

  Files folder image Files  /  example  /  Models  
File Role Description
  Plain text file Contacts.php Class Class source
  Plain text file Users.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:82
This week:2
All time:9,836
This week:88Up
For more information send a message to info at phpclasses dot org.