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( 'collaboration', 'inbox' )

Die Fetch-Funktion inbox des Moduls collaboration: 6 Parameter, 0 erforderlich.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/fetch-functions/collaboration/inbox.md

On this page

This page is a translation. Read the English original

fetch( 'collaboration', 'inbox' )

Definiert in kernel/collaboration/function_definition.php; sie ruft eZCollaborationFunctionCollection::fetchInbox() auf (kernel/collaboration/ezcollaborationfunctioncollection.php). Operationstyp: read.

Parameter

ParameterTypErforderlichStandard
statusnein'all'
rolenein'all'
typenein'all'
group_idnein0
offsetnein0
limitnein10

Beispiel

In einem Template (die Werte sind Platzhalter vom Typ des jeweiligen Parameters):

{def $result = fetch( 'collaboration', 'inbox', hash( 'status', 'all' ) )}
{* mit jedem Parameter *}
{def $all = fetch( 'collaboration', 'inbox', hash( 'status', 'all',
                                              'role', 'all',
                                              'type', 'all',
                                              'group_id', 0,
                                              'offset', 0,
                                              'limit', 10 ) )}

In PHP dieselbe Funktion über den Function-Handler (lib/ezutils/classes/ezfunctionhandler.php):

$result = eZFunctionHandler::execute( 'collaboration', 'inbox', array( 'status' => $status ) );

In einem ausgelieferten Template

Die erste Verwendung in den Templates dieser Installation, design/admin4/templates/parts/my/menu.tpl Zeile 21:

{def $cb_counts = fetch( 'collaboration', 'inbox', hash( 'limit', 1 ) ).counts}

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus kernel/collaboration/function_definition.php, kernel/collaboration/ezcollaborationfunctioncollection.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

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