00001 <?php
00025 class profileService
00026 {
00027 public $role;
00028 public $roleId;
00029 public $group;
00030 public $groupId;
00031 public $position;
00032 public $positionId;
00033 public $division;
00034 public $divisionId;
00035 public $org;
00036 public $orgId;
00037
00043 public function __construct()
00044 {
00045
00046 }
00047
00054 public function getProfile($userId=null)
00055 {
00056
00057 if (!$userId) return null;
00058
00059 $profile['USERID'] = $userId;
00060
00061
00062 if ($userId == "admin")
00063 $profile['ROLE'] = 'admin';
00064 else if ($userId == "member")
00065 $profile['ROLE'] = 'member';
00066
00067 $profile['ROLEID'] = 'RLE_2';
00068 $profile['GROUP'] = 'Member';
00069 $profile['GROUPID'] = 'GRP_3';
00070 $profile['POSITION'] = 'Marketing - France';
00071 $profile['POSITIONID'] = 'PSN_10';
00072 $profile['DIVISION'] = 'Marketing - Europe';
00073 $profile['DIVISIONID'] = 'DVN_5';
00074 $profile['ORG'] = 'IBM';
00075 $profile['ORGID'] = 'ORG_101';
00076
00077 return $profile;
00078 }
00079
00087 protected function getDBProfile($userId, $password)
00088 {
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103 $db = BizSystem::dbConnection();
00104 $resultSet = $db->execute($sql);
00105 $sqlArr = $resultSet->fetchRow();
00106
00107 }
00108
00117 public function getAttribute($userId, $attribut)
00118 {
00119 }
00120 }
00121
00122 ?>