{\r
$templateName = '';\r
}\r
+ $params[4] = $errorMessage;\r
// start output buffering\r
ob_start();\r
-\r
+ \r
$nbOfRows = call_user_func_array($call, $params);\r
\r
// get list contents and stop buffering\r
$this->itemid = $itemid;\r
}\r
\r
- function showBatchList($batchtype, $query, $type, $template, $errorMessage = _LISTS_NOMORE)\r
+ function showBatchList($batchtype, $query, $type, $template, $errorMessage = _LISTS_NOMORE, $templateName = '')\r
{\r
$batch = new Batch($batchtype);\r
\r
$this->doEncapsulate(\r
array(&$batch, 'showlist'),\r
- array(&$query, $type, $template),\r
+ array(&$query, $type, $template, $templateName),\r
$errorMessage\r
);\r
\r
<?php }\r
\r
// shortcut :)\r
- function showList($query, $type, $template, $errorMessage = _LISTS_NOMORE, $templateName = '') {\r
+ function showList($query, $type, $template, $templateName = '', $errorMessage = _LISTS_NOMORE)\r
+ {\r
return $this->doEncapsulate( 'showlist',\r
array($query, $type, $template, $templateName),\r
$errorMessage\r