ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:activerecord_index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
v5:activerecord:activerecord_index [2016/01/19 05:02]
66.249.75.209 ↷ Links adapted because of a move operation
v5:activerecord:activerecord_index [2016/01/21 16:41]
mnewnham
Line 5: Line 5:
 ===== Introduction ===== ===== Introduction =====
  
-**ADOdb_Active_Record** is an [[wp>​Object-relational_mapping|Object Relation Mapping]] (ORM) implementation using PHP. In an ORM system, the tables and rows of the database are abstracted into native PHP objects. This allows the programmer to focus more on manipulating the data and less on writing SQL queries.+**ADOdb Active Record** is an [[wp>​Object-relational_mapping|Object Relation Mapping]] (ORM) implementation using PHP. In an ORM system, the tables and rows of the database are abstracted into native PHP objects. This allows the programmer to focus more on manipulating the data and less on writing SQL queries.
  
 The ADODB Active Method library takes advantage of all the functionality of the underlying [[v5:​userguide:​userguide_index|ADOdb]] system, from table naming and casing control , mutiple database connections to features such as recordset caching. ​ The ADODB Active Method library takes advantage of all the functionality of the underlying [[v5:​userguide:​userguide_index|ADOdb]] system, from table naming and casing control , mutiple database connections to features such as recordset caching. ​
Line 18: Line 18:
  
  
-''​ADOdb_Active_Record''​ is designed upon the principles of the ''​ActiveRecord''​ design pattern, which was first described by [[wp>​Martin_Fowler|Martin Fowler]]. The ''​ActiveRecord''​ pattern has been implemented in many forms across the spectrum of programming languages. ''​ADOdb_Active_Record''​ attempts to represent the database as closely to native PHP objects as possible.+''​ADODb Active Record''​ is designed upon the principles of the ''​ActiveRecord''​ design pattern, which was first described by [[wp>​Martin_Fowler|Martin Fowler]]. The ''​ActiveRecord''​ pattern has been implemented in many forms across the spectrum of programming languages. ''​ADODb Active Record''​ attempts to represent the database as closely to native PHP objects as possible.
  
-''​ADOdb_Active_Record''​ maps a database table to a PHP class, and each instance of that class represents a table row. Relations between tables can also be defined, allowing the ADOdb_Active_Record ​objects to be nested.+''​ADODb Active Record''​ maps a database table to a PHP class, and each instance of that class represents a table row. Relations between tables can also be defined, allowing the ADODb Active Record ​objects to be nested.
  
 ADOdb Active Record functions support the [[v5:​reference:​connection:​cacheexecute|Record Caching]] functions of ADOdb ADOdb Active Record functions support the [[v5:​reference:​connection:​cacheexecute|Record Caching]] functions of ADOdb
Line 30: Line 30:
 ==== Active Record Methods ==== ==== Active Record Methods ====
 ^ Method ​                               ^ Description ​                                                                               ^ ^ Method ​                               ^ Description ​                                                                               ^
-^ [[v5:​activerecord:​getattributenames]] ​ | Returns the names in an ADOdb_Active_Record ​object ​                                        |+^ [[v5:​activerecord:​getattributenames]] ​ | Returns the names in an ADODb Active Record ​object ​                                        |
 ^ [[v5:​activerecord:​save]] ​              | Updates the object to the database ​                                                        | ^ [[v5:​activerecord:​save]] ​              | Updates the object to the database ​                                                        |
 ^ [[v5:​activerecord:​replace]] ​           | Inserts or Updates an object ​                                                              | ^ [[v5:​activerecord:​replace]] ​           | Inserts or Updates an object ​                                                              |
 ^ [[v5:​activerecord:​load]] ​              | Loads an object from the database ​                                                         | ^ [[v5:​activerecord:​load]] ​              | Loads an object from the database ​                                                         |
 ^ [[v5:​activerecord:​find]] ​              | Finds an object in the database ​                                                           | ^ [[v5:​activerecord:​find]] ​              | Finds an object in the database ​                                                           |
-^ [[v5:​activerecord:​set]] ​               | Converts an an array to an ADOdb_Active_Record ​object ​                                     |+^ [[v5:​activerecord:​set]] ​               | Converts an an array to an ADODb Active Record ​object ​                                     |
 ^ [[v5:​activerecord:​hasmany]] ​           | Deprecated General class replaced by classHasMany,​ tableHasMany and tableKeyHasMany ​       | ^ [[v5:​activerecord:​hasmany]] ​           | Deprecated General class replaced by classHasMany,​ tableHasMany and tableKeyHasMany ​       |
 ^ [[v5:​activerecord:​belongsto]] ​         | Deprecated General class replaced by classBelongsTo,​ tableBelongsTo and tableKeyBelongsTo ​ | ^ [[v5:​activerecord:​belongsto]] ​         | Deprecated General class replaced by classBelongsTo,​ tableBelongsTo and tableKeyBelongsTo ​ |
Line 80: Line 80:
 ==== Extended Active Record Methods ==== ==== Extended Active Record Methods ====
 ^Method^Description^ ^Method^Description^
-^[[v5:​activerecord:​find]]|finds an ADOdb_Active_Record ​object in a database|+^[[v5:​activerecord:​find]]|finds an ADODb Active Record ​object in a database|
v5/activerecord/activerecord_index.txt · Last modified: 2016/01/21 16:41 by mnewnham