xref: /dokuwiki/inc/Parsing/Handler/CallWriterInterface.php (revision 661c1ddc2c77658fc8c124036c2e706227865c5a)
1be906b56SAndreas Gohr<?php
2be906b56SAndreas Gohr
3be906b56SAndreas Gohrnamespace dokuwiki\Parsing\Handler;
4be906b56SAndreas Gohr
5be906b56SAndreas Gohrinterface CallWriterInterface
6be906b56SAndreas Gohr{
7*661c1ddcSChristopher Smith    /**
8*661c1ddcSChristopher Smith     * Add a call to our call list
9*661c1ddcSChristopher Smith     *
10*661c1ddcSChristopher Smith     * @param $call     the call to be added
11*661c1ddcSChristopher Smith     */
12be906b56SAndreas Gohr    public function writeCall($call);
13*661c1ddcSChristopher Smith
14*661c1ddcSChristopher Smith    /**
15*661c1ddcSChristopher Smith     * Append a list of calls to our call list
16*661c1ddcSChristopher Smith     *
17*661c1ddcSChristopher Smith     * @param $calls     list of calls to be appended
18*661c1ddcSChristopher Smith     */
19be906b56SAndreas Gohr    public function writeCalls($calls);
20*661c1ddcSChristopher Smith
21*661c1ddcSChristopher Smith    /**
22*661c1ddcSChristopher Smith     * Explicit request to finish up and clean up NOW!
23*661c1ddcSChristopher Smith     * (probably because document end has been reached)
24*661c1ddcSChristopher Smith     *
25*661c1ddcSChristopher Smith     * If part of a CallWriter chain, call finalise on
26*661c1ddcSChristopher Smith     * the original call writer
27*661c1ddcSChristopher Smith     *
28*661c1ddcSChristopher Smith     */
29be906b56SAndreas Gohr    public function finalise();
30be906b56SAndreas Gohr}
31