protected function get_processed_analysables(): array {
        global $DB;

        $params = array('modelid' => $this->analyser->get_modelid());
        $params['action'] = ($this->includetarget) ? 'training' : 'prediction';
        $select = 'modelid = :modelid and action = :action';

        // Weird select fields ordering for performance (analysableid key matching, analysableid is also unique by modelid).
        return $DB->get_records_select('analytics_used_analysables', $select,
            $params, 'timeanalysed DESC', 'analysableid, modelid, action, firstanalysis, timeanalysed, id AS primarykey');
    }
protected function get_processed_analysables(): array {
        global $DB;

        $params = array('modelid' => $this->analyser->get_modelid());
        $params['action'] = ($this->includetarget) ? 'training' : 'prediction';
        $select = 'modelid = :modelid and action = :action';

        // Weird select fields ordering for performance (analysableid key matching, analysableid is also unique by modelid).
        return $DB->get_records_select('analytics_used_analysables', $select,
            $params, 'timeanalysed DESC', 'analysableid, modelid, action, firstanalysis, timeanalysed, id AS primarykey');
    }
protected function get_processed_analysables ( ) : array { global $ DB ; $ params = array ( 'modelid' => $ this -> analyser -> get_modelid ( ) ) ; $ params [ 'action' ] = ( $ this -> includetarget ) ? 'training' : 'prediction' ; $ select = 'modelid = :modelid and action = :action' ; // Weird select fields ordering for performance (analysableid key matching, analysableid is also unique by modelid). return $ DB -> get_records_select ( 'analytics_used_analysables' , $ select , $ params , 'timeanalysed DESC' , 'analysableid, modelid, action, firstanalysis, timeanalysed, id AS primarykey' ) ; }
Get analysables that have been already processed.

@return \stdClass[]
Get analysables that have been already processed .