root/trunk/lib/model/SnippetCommentPeer.php

Revision 12, 0.7 kB (checked in by francois, 6 years ago)

optimized number of requests on homepage

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3   // include base peer class
4   require_once 'model/om/BaseSnippetCommentPeer.php';
5  
6   // include object class
7   include_once 'model/SnippetComment.php';
8
9
10 /**
11  * Skeleton subclass for performing query and update operations on the 'sn_comment' table.
12  *
13  *
14  *
15  * You should add additional methods to this class to meet the
16  * application requirements.  This class will only be generated as
17  * long as it does not already exist in the output directory.
18  *
19  * @package model
20  */   
21 class SnippetCommentPeer extends BaseSnippetCommentPeer {
22
23   public function getLatests($max)
24   {
25     $c = new Criteria();
26     $c->addDescendingOrderByColumn(self::CREATED_AT);
27     $c->setLimit($max);
28     return self::doSelectJoinAll($c);
29   }
30
31 } // SnippetCommentPeer
32
Note: See TracBrowser for help on using the browser.