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 (20 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 80 All time: 9,860 This week: 164Up
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
Age: ???
All time rank: 311873 in Poland Poland
Week rank: 502 Up10 in Poland Poland Up

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:80
This week:0
All time:9,860
This week:164Up
For more information send a message to info at phpclasses dot org.