[development] Moderation bit behavior
merlin at logrus.com
Wed Jul 5 17:56:24 UTC 2006
Dries Buytaert wrote:
> On 05 Jul 2006, at 18:13, Earl Miles wrote:
>> I'd be in favor of something along these lines:
>> node_flag('moderate') -- returns the name of the flag used for
>> 'moderate' or NULL if there isn't one.
>> node_flag_register('moderate') -- register the flag during .install,
>> returns the real fieldname. Returns NULL if no flags are available.
>> node_flag_list() -- return an array of all existing flags
> That's over-engineering, IMO.
> There is nothing wrong with having separate bit-fields in the
> database. It's easy to use, easy to write SQL queries for, and
> probably faster as you don't have to do binary operations in the SQL
> queries. Keep it simple.
I didn't mean for these to be a single bit field, but each one would be
its own field.
More information about the development