src/Rah/Backup.php
private function multi_option_delete()
    {
        $selected = ps('selected');
        $deleted = array();

        try {
            foreach ($this->getBackups() as $name => $file) {
                if (in_array($name, $selected, true)) {
                    $deleted[$name] = $file['path'];
                    @unlink($file['path']);
                }
            }
        } catch (Exception $e) {
        }

        callback_event('rah_backup.deleted', '', 0, array(
            'files' => $deleted,
        ));

        $this->browser(gTxt('rah_backup_removed'));
    }
private function multi_option_delete()
    {
        $selected = ps('selected');
        $deleted = array();

        try {
            foreach ($this->getBackups() as $name => $file) {
                if (in_array($name, $selected, true)) {
                    $deleted[$name] = $file['path'];
                    @unlink($file['path']);
                }
            }
        } catch (Exception $e) {
        }

        callback_event('rah_backup.deleted', '', 0, array(
            'files' => $deleted,
        ));

        $this->browser(gTxt('rah_backup_removed'));
    }
private function multi_option_delete ( ) { $ selected = ps ( 'selected' ) ; $ deleted = array ( ) ; try { foreach ( $ this -> getBackups ( ) as $ name => $ file ) { if ( in_array ( $ name , $ selected , true ) ) { $ deleted [ $ name ] = $ file [ 'path' ] ; @ unlink ( $ file [ 'path' ] ) ; } } } catch ( Exception $ e ) { } callback_event ( 'rah_backup.deleted' , '' , 0 , array ( 'files' => $ deleted , ) ) ; $ this -> browser ( gTxt ( 'rah_backup_removed' ) ) ; }
Deletes selected backups.
Deletes selected backups .