CRM-14181, more clean and fixes to support callback
[civicrm-core.git] / xml / schema / ACL / ACL.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/ACL</base>
5 <class>ACL</class>
6 <name>civicrm_acl</name>
7 <comment>Access Control List</comment>
8 <add>1.6</add>
9 <field>
10 <name>id</name>
de25aed1 11 <title>ACL ID</title>
6a488035
TO
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Unique table ID</comment>
15 <add>1.6</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>name</name>
23 <title>ACL Name</title>
24 <type>varchar</type>
25 <length>64</length>
26 <comment>ACL Name.</comment>
614d72ec 27 <html>
28 <type>Text</type>
29 </html>
30 <add>1.6</add>
6a488035
TO
31 </field>
32 <field>
33 <name>deny</name>
34 <type>boolean</type>
35 <default>0</default>
36 <required>true</required>
37 <comment>Is this ACL entry Allow (0) or Deny (1) ?</comment>
614d72ec 38 <html>
39 <type>Radio</type>
40 </html>
41 <add>1.6</add>
6a488035
TO
42 </field>
43 <field>
44 <name>entity_table</name>
45 <type>varchar</type>
46 <length>64</length>
47 <required>true</required>
48 <comment>Table of the object possessing this ACL entry (Contact, Group, or ACL Group)</comment>
49 <add>1.6</add>
50 </field>
51 <field>
52 <name>entity_id</name>
53 <type>int unsigned</type>
54 <comment>ID of the object possessing this ACL</comment>
55 <add>1.6</add>
56 </field>
71e5aa5c
ARW
57 <dynamicForeignKey>
58 <idColumn>entity_id</idColumn>
59 <typeColumn>entity_table</typeColumn>
60 <add>1.6</add>
61 </dynamicForeignKey>
6a488035
TO
62 <field>
63 <name>operation</name>
be622aca 64 <type>varchar</type>
65 <length>8</length>
6a488035
TO
66 <required>true</required>
67 <comment>What operation does this ACL entry control?</comment>
f80ce889 68 <pseudoconstant>
93bfa565 69 <callback>CRM_ACL_BAO_ACL::operation</callback>
f80ce889 70 </pseudoconstant>
614d72ec 71 <html>
72 <type>Select</type>
73 </html>
74 <add>1.6</add>
6a488035
TO
75 </field>
76 <field>
77 <name>object_table</name>
78 <type>varchar</type>
79 <length>64</length>
80 <comment>The table of the object controlled by this ACL entry</comment>
81 <add>1.6</add>
82 </field>
83 <field>
84 <name>object_id</name>
85 <type>int unsigned</type>
86 <comment>The ID of the object controlled by this ACL entry</comment>
87 <add>1.6</add>
88 </field>
89 <field>
90 <name>acl_table</name>
91 <type>varchar</type>
92 <length>64</length>
93 <comment>If this is a grant/revoke entry, what table are we granting?</comment>
614d72ec 94 <add>1.6</add>
6a488035
TO
95 </field>
96 <field>
97 <name>acl_id</name>
98 <type>int unsigned</type>
99 <comment>ID of the ACL or ACL group being granted/revoked</comment>
100 <add>1.6</add>
101 </field>
102 <index>
103 <name>index_acl_id</name>
de25aed1 104 <fieldName>acl_id</fieldName>
6a488035
TO
105 <add>1.6</add>
106 </index>
107 <field>
108 <name>is_active</name>
109 <type>boolean</type>
110 <comment>Is this property active?</comment>
111 <add>1.6</add>
614d72ec 112 <html>
113 <type>Checkbox</type>
114 </html>
6a488035
TO
115 </field>
116</table>