1: <?php
2:
3:
4: /**
5: * Ws_permissionsModel
6: * Stores permission name records for role based access control module.
7: *
8: * @see WsAuth
9: * @see Ws_rolesModel
10: * @see Ws_userModel
11: * @see Ws_role_permModel
12: * @see Ws_user_roleModel
13: *
14: */
15: class Ws_permissionsModel extends WsModel
16: {
17: public function __construct()
18: {
19: parent::__construct();
20:
21: // set metaName for displaying in grid and form
22: $this->metaName = WsLocalize::msg('Permissions');
23:
24: // column headers for grid and form
25: $this->columnHeaders = array(
26: 'id' => WsLocalize::msg('permission id'),
27: 'name' => WsLocalize::msg('permission name'),
28: 'description' => WsLocalize::msg('description of permission')
29: );
30: }
31: }
32:
33: