src/Model/Export.php
public function setBatchStatus(array $aIds, $sStatus, $sError = '')
    {
        if (is_object(reset($aIds))) {
            $aIds = arrayExtractProperty($aIds, 'id');
        }
        if (!empty($aIds)) {
            $oDb = Factory::service('Database');
            $oDb->set('status', $sStatus);
            $oDb->set('modified', 'NOW()', false);
            if ($sError) {
                $oDb->set('error', $sError);
            }
            $oDb->where_in('id', $aIds);
            $oDb->update($this->getTableName());
        }
    }
public function setBatchStatus(array $aIds, $sStatus, $sError = '')
    {
        if (is_object(reset($aIds))) {
            $aIds = arrayExtractProperty($aIds, 'id');
        }
        if (!empty($aIds)) {
            $oDb = Factory::service('Database');
            $oDb->set('status', $sStatus);
            $oDb->set('modified', 'NOW()', false);
            if ($sError) {
                $oDb->set('error', $sError);
            }
            $oDb->where_in('id', $aIds);
            $oDb->update($this->getTableName());
        }
    }
Updates the status of multiple request items in a batch

@param array  $aIds    The requests to update
@param string $sStatus The status to set
@param string $sError  Any error message to set