Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

fetch( 'datatable', 'list' )

The fetch function list of the datatable module: 5 parameter(s), 1 required.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/fetch-functions/datatable/list.md

On this page

fetch( 'datatable', 'list' )

Defined in kernel/datatable/function_definition.php; it calls expDataTableFunctionCollection::fetchList() (kernel/classes/datatable/expdatatablefunctioncollection.php).

Parameters

ParameterTypeRequiredDefault
classstringyes
conditionsarraynofalse
sortarraynofalse
offsetintegerno0
limitintegerno50

Example

In a template (the values are placeholders of each parameter's type):

{def $result = fetch( 'datatable', 'list', hash( 'class', 'class' ) )}
{* with every parameter *}
{def $all = fetch( 'datatable', 'list', hash( 'class', 'class',
                                         'conditions', array(),
                                         'sort', array(),
                                         'offset', 0,
                                         'limit', 50 ) )}

In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):

$result = eZFunctionHandler::execute( 'datatable', 'list', array( 'class' => 'class' ) );

Generated by ./console exp:help:examples from kernel/datatable/function_definition.php, kernel/classes/datatable/expdatatablefunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x