Open Source Content Management System

Midgard Quota function mgd_get_quota

Midgard Quota Documentation

Description:

mgd_get_quota([int id])

Minimum version: Midgard 1.7.3

Retrieves information about an quota record.

Returns an object describing the article with id identifier if successful. Returns FALSE on failure.

Returns new object instance without properties being set when id identifier is not set.

<?php 
$new_quota = mgd_get_quota();

$id = 1;
$quota = mgd_get_quota($id);

?>

You may also use midgard_quota object

<?php

$quota = new midgard_quota();
$quota->get_by_id(1);

print_r($quota);

?>
Designed by Nemein, hosted by Anykey