Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
user_group.inc
1 <?php
17 require_once SQ_CORE_PACKAGE_PATH.'/folder/folder.inc';
18 
30 class User_Group extends Folder
31 {
32 
33 
40  function User_Group($assetid=0)
41  {
42  $this->Folder($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]['user_group'] = Array('card' => 'M', 'exclusive' => FALSE);
74  $allowed[SQ_LINK_TYPE_1]['user'] = Array('card' => 'M', 'exclusive' => FALSE);
75  $allowed[SQ_LINK_TYPE_2]['user_group'] = Array('card' => 'M', 'exclusive' => FALSE);
76  $allowed[SQ_LINK_TYPE_2]['user'] = Array('card' => 'M', 'exclusive' => FALSE);
77  return $allowed;
78 
79  }//end _getAllowedLinks()
80 
81 
82 
83 }//end class
84 ?>