Quote from: xwisdom at Feb 27, 2006, 02:47 AM
Hi Wendy,
Sorry for not posting sooner.
This is looking great. I also like the way how you handle the various data types or user attributes. This format will also be used in ContentFields (TV2).
If you can implement something like this for GreenFuse then that would be great!
From rough specs that I have the system will create a $cms->user object for all users. This means that you can be logged into the "web" - frontend context or "Manager" backend context or both with the same userd.
<?php
// logs mary into the web frontend
$cms->user->login('mary','password',CMS_WEB);
?>
I like that idea Raymond. So all I need is to create User class, which will be called GreenFuse. My concern will be the multi fields and data types though. Do you think using ALTER sql statement will be compatible with most shared hosting MySql? By using my first approach, it can be handled just fine, but the processing cost is very2 expensive, considering you need to make multiple sql calls just to list several people. It works fabulous if I need only to list 1 user with all his/her attributes in detailed view, but it’s becoming cost ineffective, when I want to list several users with their details attributes.
Let me know if you think ALTER will do just fine, then I will go that way, by having a users_attributes table to be altered in whatever way the admin wants it to be, and the code will automatically adjust to the table alteration for the user attributes.
One more thing, Raymond, you’re aiming GreenFuse to be PHP4 compatible right? I’ve been experimenting with compatibility of some my OOP concept on PHP 4 and 5, so I’ll make sure that this will be compaible with OOP concept on PHP 4.
Sincerely,