Friday 30 January 2009 7:03:04 am
Some thinking: You can track the total file size of published items in a separate table, per user. Increase when an object gets published, decrease when an object gets removed. We need a signal / post remove workflow trigger though to be able to track this, which is currently not available in eZ Publish. Using the new content edit handler validation feature, test on the file size of any supported datatypes (binary file, image, ...) and compare it with the file size of all published items with the same owner: valid = max >= ( total_sizes_object_owner - current_size_of_object + new_size_of_object ) If the object is not published now, then current_size_of_object is 0.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|