Codeigniter: State Machine how to

Posted by Kevin Brown on Stack Overflow See other posts from Stack Overflow or by Kevin Brown
Published on 2010-05-07T14:22:10Z Indexed on 2010/05/07 14:28 UTC
Read the original article Hit count: 142

Filed under:
|
|

I created a db row called "activity_state" to denote which things a user has and hasn't completed.

The problem is, I don't know how to use it... How can I use this single row to determine what a user has done?

ie. have they completed their profile?, have they completed an assignment?

Someone mentioned using it as a bitfield, but I'm unfamiliar with that. Is that a good idea?

Any ideas?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about beginner