classes/Tools/BatchTool.php
public function progressAction() {
        $data = BatchManager::instance()->stats($this->batchIdentifier());

        $data['status'] =  ($data['running']) ? 'running' : 'idle';
        $data['enabled'] = $this->enabled();

        json_response($data);
    }
public function progressAction() {
        $data = BatchManager::instance()->stats($this->batchIdentifier());

        $data['status'] =  ($data['running']) ? 'running' : 'idle';
        $data['enabled'] = $this->enabled();

        json_response($data);
    }
public function progressAction ( ) { $ data = BatchManager :: instance ( ) -> stats ( $ this -> batchIdentifier ( ) ) ; $ data [ 'status' ] = ( $ data [ 'running' ] ) ? 'running' : 'idle' ; $ data [ 'enabled' ] = $ this -> enabled ( ) ; json_response ( $ data ) ; }
Reports progress on a batch
Reports progress on a batch