OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
DB_DataObject

DB_DataObject

Table of Contents
Introduction --  What DB_DataObject can do
Configuration Options --  Setting the defaults for database access
Auto Building and Database Schema --  creating the base Classes and Database schema
DB_DataObject::factory() -- Autoload and instantate class based on table name.
->get() --  Simple Get (Select) request
DB_DataObject::staticGet() -- Simple Get (Select) request, abbreviated and Autoload.
{Child Class}::staticGet() -- Simple Get (Select) request, abbreviated (autogenerated)
->find() -- find results
->fetch() -- fetch next row
->count() -- Perform a select count() request
->insert() -- Insert current objects variables into database
->update() -- Update objects variables into database
->delete() -- Delete items from table
Selecting Specific data (SELECT) --  Advanced Filters - ::query(), ::SelectAdd(), ::whereAdd(), ::Limit(), ::OrderBy(), ::GroupBy(),
->query() -- send a raw query
->selectAdd() -- Add selected columns
->whereAdd() -- Add WHERE statement
->escape() -- Escape a string for use with Like queries
->limit() -- Set limit
->orderBy() -- Add an order by condition
->groupBy() -- Add group by condition
Automatic Table Linking and Joins --  Automatic Table Linking - ::getLink(), ::getLinks(), ::joinAdd(), ::selectAs()
->getLink() -- fetch and return a related object
->getLinks() -- load related objects
->selectAs() -- Build the select component of a query (usually for joins)
->joinAdd() -- add another dataobject to build a create join query
->set*() and ->get*() -- Automatic Setters and Getters using overload
->setFrom() -- Copy items from Array or Object (for form posting)
->toArray() -- Get an array of the current result
->validate() -- check object data, and call objects validation methods.
->tableName() -- Get or set the table name of an object
->database() -- Get or set the database the object uses
->table() -- Get or set the table schema
->keys() -- Get or set the table keys
->getDatabaseConnection() -- Get the PEAR Database Object
->getDatabaseResult() -- Get the PEAR Database Result Object
DB_DataObject::debugLevel -- set the amount of debugging output
->debug() -- output debug information.
DB_DataObject::raiseError -- throw an error
Casting - Dates, Blobs and Null --  DB_DataObject_Cast ::date(), ::blob(), ::sql()

SQL Builder and Data Modeling Layer

This chapter describes how to use the DB_DataObject SQL Builder and Data Modeling layer

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting


Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS Free Templates

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005