[development] Moderation bit behavior

Dries Buytaert dries.buytaert at gmail.com
Wed Jul 5 17:30:09 UTC 2006


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.

--
Dries Buytaert  ::  http://www.buytaert.net/



More information about the development mailing list