/** * Get the accounting spool record total * * Method will return the total amount of accounting spool records * * @access public * @param int $parentSpoolId The optional parent spool ID. Default is NULL (count all) * @param bool $useCurrentImport TRUE to only count the spools in the current import, FALSE to count all. Default is FALSE * @param bool $useExecutedOnly TRUE to only count the executed spools, FALSE to count all. Default is FALSE * @return int The total amount of accounting spool records on success, FALSE on failure */ public function getAccountingSpoolCount($parentSpoolId = null, $useCurrentImport = false, $useExecutedOnly = false) { $lock = ''; if ($useCurrentImport) { $lock = $this->getAccountingSessionKey('UUID'); if (!$lock || $lock == '') { return false; } } return parent::getAccountingSpoolCount($this->getid(), $parentSpoolId, $lock, $useExecutedOnly); }