bu_getAllInfractions() public method

Params: $uuid (string), UUID of a user. If null, will list all infractions
public bu_getAllInfractions ( $uuid = null )
Example #1
0
    // Get all infractions, depending on plugin
    switch ($inf_plugin) {
        case 'bat':
            $all_infractions = $infractions->bat_getAllInfractions();
            break;
        case 'bm':
            $all_infractions = $infractions->bm_getAllInfractions();
            break;
        case 'lb':
            $all_infractions = $infractions->lb_getAllInfractions();
            break;
        case 'bam':
            $all_infractions = $infractions->bam_getAllInfractions();
            break;
        case 'bu':
            $all_infractions = $infractions->bu_getAllInfractions();
            break;
    }
    // Pagination
    $paginate = PaginateArray($p);
    $n = $paginate[0];
    $f = $paginate[1];
    if (count($all_infractions) > $f) {
        $d = $p * 10;
    } else {
        $d = count($all_infractions) - $n;
        $d = $d + $n;
    }
    ?>
	    <div class="table-responsive">
		  <table class="table table-bordered">