Midgard Quota function mgd_update_quota
Midgard Quota Documentation
Description:
mgd_update_quota(int id, string tablename, string spacefields, int number, int space, int sg)
Minimum version: Midgard 1.7.3
Updates already exisitng quota object's record. You must be logged in as SG0 admin to update quota record.
- id, quota object's identifier
- tablename, name of table used by object ( "wholesg" means all table )
- spacefields, content fields for which quota size should be limited ( depreciated )
- number, number of records which may be created for particular sitegroup
- space, limit size ( in KB ) for a sitegroup
sitegroup, sitegroup's identifier
<?php $id = 1; $tablename = "wholesg"; /* wholesg is an exception for all tables and means all tables used in sitegroup */ $spacefields = ""; /* define which content fields should be limited */ $number = 0; /* we set no limits for sitegroup's records , so set different number if you want to limit sg records usage */ $space = 50000; /* ( value as KB ) we set 50MB quota limit */ $sitegroup = 2; /* be logged in as SG0 admin */ mgd\_update\_quota (id, ,tablename, spacefields, number, space, sitegroup); ?>
