public function get_logs($limitfrom = 0, $limitnum = 0) {
        global $DB;

        \core_analytics\manager::check_can_manage_models();

        return $DB->get_records('analytics_models_log', array('modelid' => $this->get_id()), 'timecreated DESC', '*',
            $limitfrom, $limitnum);
    }
public function get_logs($limitfrom = 0, $limitnum = 0) {
        global $DB;

        \core_analytics\manager::check_can_manage_models();

        return $DB->get_records('analytics_models_log', array('modelid' => $this->get_id()), 'timecreated DESC', '*',
            $limitfrom, $limitnum);
    }
public function get_logs ( $ limitfrom = 0 , $ limitnum = 0 ) { global $ DB ; \ core_analytics \ manager :: check_can_manage_models ( ) ; return $ DB -> get_records ( 'analytics_models_log' , array ( 'modelid' => $ this -> get_id ( ) ) , 'timecreated DESC' , '*' , $ limitfrom , $ limitnum ) ; }
Returns the model logs data.

@param int $limitfrom
@param int $limitnum
@return \stdClass[]
Returns the model logs data .