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 revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
v5:activerecord:activerecord_index [2016/01/21 16:38] mnewnhamv5:activerecord:activerecord_index [2021/04/11 15:19] – [Introduction] fix wikipedia link, minor changes dregad
Line 7: Line 7:
 **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. 
  
-Thre are a couple of simple rules that help aid development, especially when developing simple applications in a rapid development environment. Following these rules will avoid additional configuration requirement:+Thre are a couple of simple rules that aid development, especially when developing simple applications in a rapid development environment. Following these rules will avoid additional configuration requirement:
  
   * The table and column names should be a consistent case in case sensitive environments.   * The table and column names should be a consistent case in case sensitive environments.
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_(software_engineer)|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.
 ===== Using ADOdb Active Record ===== ===== Using ADOdb Active Record =====
 See the [[v5:activerecord:active_record_tutorial|tutorial]] See the [[v5:activerecord:active_record_tutorial|tutorial]]
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: 2022/06/09 18:37 by 3.83.52.90