~coughphp/coughphp/2.0

« back to all changes in this revision

Viewing changes to design/as it currently works/Retrieving From Persistence Layer.markdown

  • Committer: Anthony Bush
  • Date: 2008-08-23 03:35:08 UTC
  • mfrom: (262.1.18 coughphp-release-1.3)
  • Revision ID: anthony@anthonybush.com-20080823033508-uy4yn5pmio6wcetv
Accept release-1.3 branch changes into trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Sample code for how retrieval works now. Include examples on common problems (where you need to customize the queries to get extra data...)
2
 
 
3
 
        <?php
4
 
        $product = new Product(1);
5
 
        ?>
6
 
 
7
 
        <?php
8
 
        $product = new Product();
9
 
        $product->checkBySql($sql);
10
 
        ?>
11
 
 
12
 
        <?php
13
 
        $product = new Product();
14
 
        $product->checkByCriteria(array('product_id' => 1, 'product_status' => 0));
15
 
        ?>
16