Dotclear

Changeset 191:67cb37c57a91


Ignore:
Timestamp:
05/06/11 19:40:28 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Mise en place pour le ticket http://dev.dotclear.org/2.0/ticket/1028

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r0 r191  
    647647     @param    params         <b>array</b>        Parameters 
    648648     @param    count_only     <b>boolean</b>      Only counts results 
    649      @return   <b>record</b>  A record with some more capabilities 
    650      */ 
    651      public function getPosts($params=array(),$count_only=false) 
     649     @param    sql_only  <b>boolean</b>      Only return SQL request 
     650     @return   <b>record</b>  A record with some more capabilities or the SQL request 
     651     */ 
     652     public function getPosts($params=array(),$count_only=false,$sql_only=false) 
    652653     { 
    653654          if ($count_only) 
     
    823824          if (!$count_only && !empty($params['limit'])) { 
    824825               $strReq .= $this->con->limit($params['limit']); 
     826          } 
     827           
     828          if ($sql_only) { 
     829               return $strReq; 
    825830          } 
    826831           
Note: See TracChangeset for help on using the changeset viewer.

Sites map