[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/doc/features/3.9/ -> best_sell_list_extended.txt (source)

   1  *Title: best_sell_list extended fetch function
   2  
   3  *Documentation:
   4  Several new parameters were added to shop/best_sell_list fetch function to give
   5  a possibility to fetch list of most sold products for a certain time duration.
   6  
   7  *Usage:
   8  fetch( 'shop', 'best_sell_list',
   9         hash( [ 'top_parent_node_id', parent_node_id, ]
  10               [ 'offset', offset, ]
  11               [ 'limit', limit, ]
  12               [ 'start_time', start_time, ]
  13               [ 'end_time', end_time, ]
  14               [ 'duration', duration, ]
  15               [ 'ascending', ascending, ]
  16               [ 'extended', extended, ]
  17                ) )
  18  
  19  *Parameters:
  20  Name:               Type:        Required:
  21   top_parent_node_id  integer      yes
  22   offset              integer      no
  23   limit               integer      no
  24   start_time          integer      no
  25   end_time            integer      no
  26   duration            integer      no
  27   ascending           boolean      no
  28   extended            boolean      no
  29  
  30  *Example:
  31  
  32  {def $best_sellers=fetch( 'shop', 'best_sell_list',
  33                            hash( 'top_parent_node_id', 2,
  34                                  'limit', 5,
  35                                  'offset', 0,
  36                                  'start_time', maketime( 0, 0, 0 ),
  37                                  'duration', mul( 60, 60, 24 ),
  38                                  'extended', true() ) ) }
  39  
  40  <table>
  41  {foreach $best_sellers as $product}
  42      <tr>
  43      <td>{$product.object.name}
  44      <td>{$product.object.main_node.path_identification_string}
  45      <td>{$product.count}
  46      </tr>
  47  {/foreach}
  48  </table>
  49  {undef}


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7