Exemplo n.º 1
0
 /**
  * Set a spool record as executed
  *
  * Method will set a spool record as executed
  *
  * @access public
  * @param int $spoolId The spool to be set as executed
  * @param bool $forceClean TRUE to also reset the accountingspooldisabled, accountingspoolerrmsg and accountingspoolerrno fields. Default is FALSE
  * @return bool TRUE if the spool was set, FALSE if not
  */
 public function setSpoolAsExecuted($spoolId, $forceClean = false)
 {
     if (!isId($spoolId)) {
         return false;
     }
     $lock = $this->getAccountingSessionKey('UUID');
     if (!$lock || $lock == '') {
         return false;
     }
     return parent::setSpoolAsExecuted($this->getid(), $lock, $spoolId, $forceClean);
 }