1: <?php
2: /**
3: *
4: * @package XCube
5: * @version $Id: XCube_RoleManager.class.php,v 1.3 2008/10/12 04:30:27 minahito Exp $
6: * @copyright Copyright 2005-2007 XOOPS Cube Project <https://github.com/xoopscube/legacy>
7: * @license https://github.com/xoopscube/legacy/blob/master/docs/bsd_licenses.txt Modified BSD license
8: *
9: */
10:
11: /**
12: * The provider class which handles role informations with the store.
13: */
14: class XCube_RoleManager
15: {
16: function getRolesForUser($username = null)
17: {
18: }
19: }
20:
21: /**
22: * The utility class which handles role information without the root object.
23: */
24: class XCube_Role
25: {
26: function getRolesForUser($username = null)
27: {
28: $root =& XCube_Root::getSingleton();
29: return $root->mRoleManager->getRolesForUser($username);
30: }
31: }
32:
33: ?>