LiveUserPEAR::LiveUser authentication and permission framework |
[ AdvancedSearch | AreaMap ]
|
| Welcome to LiveUser | Documentation | RoadMap | Wishlist | About |
| Documentation | FAQ | References | Tutorials | Other |
|
Areas In LiveUser |
Custom propertiesAdding custom properties to the authentication container. Something you probably wish to do is to add more information about my your users. Maybe add a name, e-mail, shoe size, etc. In the auth-containers array definition you can add custom properties by extending the table's field-array. For each field you add, you also need to add an alias for it and specify its type in the field-array. If you are using MDB2 you can find all supported types in the MDB2::Documentation1 (under Datatypes 2). Here is a small example, taken from example1 in the LiveUser_Admin documentation:
Don't forget to synchronize your storage container too (eg. by running install.php again). You can now access the new property by using the method getProperty() found in LiveUser.
This site powered by YaWiki 0.22 beta. |
|