public function setBatchDownloadId(array $aIds, $iDownloadId)
    {
        if (is_object(reset($aIds))) {
            $aIds = arrayExtractProperty($aIds, 'id');
        }
        if (!empty($aIds)) {
            $oDb = Factory::service('Database');
            $oDb->set('download_id', $iDownloadId);
            $oDb->set('modified', 'NOW()', false);
            $oDb->where_in('id', $aIds);
            $oDb->update($this->getTableName());
        }
    }
public function setBatchDownloadId(array $aIds, $iDownloadId)
    {
        if (is_object(reset($aIds))) {
            $aIds = arrayExtractProperty($aIds, 'id');
        }
        if (!empty($aIds)) {
            $oDb = Factory::service('Database');
            $oDb->set('download_id', $iDownloadId);
            $oDb->set('modified', 'NOW()', false);
            $oDb->where_in('id', $aIds);
            $oDb->update($this->getTableName());
        }
    }
public function setBatchDownloadId ( array $ aIds , $ iDownloadId ) { if ( is_object ( reset ( $ aIds ) ) ) { $ aIds = arrayExtractProperty ( $ aIds , 'id' ) ; } if ( ! empty ( $ aIds ) ) { $ oDb = Factory :: service ( 'Database' ) ; $ oDb -> set ( 'download_id' , $ iDownloadId ) ; $ oDb -> set ( 'modified' , 'NOW()' , false ) ; $ oDb -> where_in ( 'id' , $ aIds ) ; $ oDb -> update ( $ this -> getTableName ( ) ) ; } }
Updates the download ID of multiple requests

@param array   $aIds        The requests to update
@param integer $iDownloadId The download ID
Updates the download ID of multiple requests