fetch( 'shop', 'best_sell_list' )
Defined in kernel/shop/function_definition.php; it calls eZShopFunctionCollection::fetchBestSellList() (kernel/shop/ezshopfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
top_parent_node_id | integer | yes | |
limit | integer | no | |
offset | integer | no | false |
start_time | integer | no | false |
end_time | integer | no | false |
duration | integer | no | false |
ascending | boolean | no | false |
extended | boolean | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'shop', 'best_sell_list', hash( 'top_parent_node_id', 1 ) )
{* with every parameter *}
{def $all = fetch( 'shop', 'best_sell_list', hash( 'top_parent_node_id', 1,
'limit', 1,
'offset', 1,
'start_time', 1,
'end_time', 1,
'duration', 1,
'ascending', true(),
'extended', true() ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'shop', 'best_sell_list', array( 'top_parent_node_id' => 1 ) );Related
Generated by ./console exp:help:examples from kernel/shop/function_definition.php, kernel/shop/ezshopfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.