Midgard Quota function mgd_list_quotas
Midgard Quota Documentation
Description:
mgd_list_quotas(void)
Minimum version: Midgard 1.7.3
Returns fetchable objects' records with quota limits already being set for sitegroup. Sitegroup identifier is not configurable and depends on host's sitegroup or a sitegroup which logged in person belongs to.
<?php
$quota = mgd_list_quotas();
while($quota && $quota->fetch()) {
echo "Table entry $quota->tablename has limit set to $quota->space <br />";
}
?>
You may also use midgard_quota object to list all quotas
<?php
$qb = new MidgardQueryBuilder("midgard_quota");
$qb->add_constraint("id", ">", 0);
$qb->execute();
?>
