Changeset 6160 for branches/0.9/bb-includes/capabilities.php
- Timestamp:
- 12/12/2016 01:59:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-includes/capabilities.php
r1173 r6160 8 8 var $role_key; 9 9 10 function BB_Roles() {10 function __construct() { 11 11 global $bbdb; 12 12 $this->role_key = $bbdb->prefix . 'user_roles'; … … 21 21 $this->role_names[$role] = $this->roles[$role]['name']; 22 22 } 23 } 24 25 function BB_Roles() { 26 $this->__construct(); 23 27 } 24 28 … … 214 218 var $capabilities; 215 219 216 function BB_Role($role, $capabilities) {220 function __construct($role, $capabilities) { 217 221 $this->name = $role; 218 222 $this->capabilities = $capabilities; 223 } 224 225 function BB_Role($role, $capabilities) { 226 $this->__construct($role, $capabilities); 219 227 } 220 228 … … 251 259 var $allcaps = array(); 252 260 253 function BB_User($id) {261 function __construct($id) { 254 262 global $bb_roles, $bbdb; 255 263 … … 268 276 } 269 277 $this->get_role_caps(); 278 } 279 280 function BB_User($id) { 281 $this->__construct($id); 270 282 } 271 283
Note: See TracChangeset
for help on using the changeset viewer.