Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
role.inc
1 <?php
17 require_once SQ_CORE_PACKAGE_PATH.'/users/user_group/user_group.inc';
18 
30 class Role extends User_Group
31 {
32 
33 
40  function Role($assetid=0)
41  {
42  $this->User_Group($assetid);
43 
44  }//end constructor
45 
46 
53  function lockTypes()
54  {
55  $lock_types = parent::lockTypes();
56  $lock_types['security'] = max($lock_types) * 2;
57  $lock_types['preferences'] = max($lock_types) * 2;
58  return $lock_types;
59 
60  }//end lockTypes()
61 
62 
70  function _getAllowedLinks()
71  {
72  $allowed = parent::_getAllowedLinks();
73  $allowed[SQ_LINK_TYPE_1]['role'] = Array('card' => 'M', 'exclusive' => FALSE);
74  $allowed[SQ_LINK_TYPE_1]['role'] = Array('card' => 'M', 'exclusive' => FALSE);
75  return $allowed;
76 
77  }//end _getAllowedLinks()
78 
79 
80 }//end class
81 ?>