@@ -5,27 +5,27 @@ |
||
5 | 5 | * @package modx |
6 | 6 | */ |
7 | 7 | $permissions = array(); |
8 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
8 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
9 | 9 | 'name' => 'load', |
10 | 10 | 'description' => 'perm.load_desc', |
11 | 11 | 'value' => true, |
12 | 12 | )); |
13 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
13 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
14 | 14 | 'name' => 'list', |
15 | 15 | 'description' => 'perm.list_desc', |
16 | 16 | 'value' => true, |
17 | 17 | )); |
18 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
18 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
19 | 19 | 'name' => 'view', |
20 | 20 | 'description' => 'perm.view_desc', |
21 | 21 | 'value' => true, |
22 | 22 | )); |
23 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
23 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
24 | 24 | 'name' => 'save', |
25 | 25 | 'description' => 'perm.save_desc', |
26 | 26 | 'value' => true, |
27 | 27 | )); |
28 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
28 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
29 | 29 | 'name' => 'remove', |
30 | 30 | 'description' => 'perm.remove_desc', |
31 | 31 | 'value' => true, |
@@ -6,37 +6,37 @@ |
||
6 | 6 | * @package modx |
7 | 7 | */ |
8 | 8 | $permissions = array(); |
9 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
9 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
10 | 10 | 'name' => 'load', |
11 | 11 | 'description' => 'perm.load_desc', |
12 | 12 | 'value' => true, |
13 | 13 | )); |
14 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
14 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
15 | 15 | 'name' => 'list', |
16 | 16 | 'description' => 'perm.list_desc', |
17 | 17 | 'value' => true, |
18 | 18 | )); |
19 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
19 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
20 | 20 | 'name' => 'view', |
21 | 21 | 'description' => 'perm.view_desc', |
22 | 22 | 'value' => true, |
23 | 23 | )); |
24 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
24 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
25 | 25 | 'name' => 'save', |
26 | 26 | 'description' => 'perm.save_desc', |
27 | 27 | 'value' => true, |
28 | 28 | )); |
29 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
29 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
30 | 30 | 'name' => 'remove', |
31 | 31 | 'description' => 'perm.remove_desc', |
32 | 32 | 'value' => true, |
33 | 33 | )); |
34 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
34 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
35 | 35 | 'name' => 'view_unpublished', |
36 | 36 | 'description' => 'perm.view_unpublished_desc', |
37 | 37 | 'value' => true, |
38 | 38 | )); |
39 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
39 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
40 | 40 | 'name' => 'copy', |
41 | 41 | 'description' => 'perm.copy_desc', |
42 | 42 | 'value' => true, |
@@ -5,47 +5,47 @@ |
||
5 | 5 | * @package modx |
6 | 6 | */ |
7 | 7 | $permissions = array(); |
8 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
8 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
9 | 9 | 'name' => 'add_children', |
10 | 10 | 'description' => 'perm.add_children_desc', |
11 | 11 | 'value' => true, |
12 | 12 | )); |
13 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
13 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
14 | 14 | 'name' => 'create', |
15 | 15 | 'description' => 'perm.create_desc', |
16 | 16 | 'value' => true, |
17 | 17 | )); |
18 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
18 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
19 | 19 | 'name' => 'copy', |
20 | 20 | 'description' => 'perm.copy_desc', |
21 | 21 | 'value' => true, |
22 | 22 | )); |
23 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
23 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
24 | 24 | 'name' => 'delete', |
25 | 25 | 'description' => 'perm.delete_desc', |
26 | 26 | 'value' => true, |
27 | 27 | )); |
28 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
28 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
29 | 29 | 'name' => 'list', |
30 | 30 | 'description' => 'perm.list_desc', |
31 | 31 | 'value' => true, |
32 | 32 | )); |
33 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
33 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
34 | 34 | 'name' => 'load', |
35 | 35 | 'description' => 'perm.load_desc', |
36 | 36 | 'value' => true, |
37 | 37 | )); |
38 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
38 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
39 | 39 | 'name' => 'remove', |
40 | 40 | 'description' => 'perm.remove_desc', |
41 | 41 | 'value' => true, |
42 | 42 | )); |
43 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
43 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
44 | 44 | 'name' => 'save', |
45 | 45 | 'description' => 'perm.save_desc', |
46 | 46 | 'value' => true, |
47 | 47 | )); |
48 | -$permissions[] = $xpdo->newObject('modAccessPermission',array( |
|
48 | +$permissions[] = $xpdo->newObject('modAccessPermission', array( |
|
49 | 49 | 'name' => 'view', |
50 | 50 | 'description' => 'perm.view_desc', |
51 | 51 | 'value' => true, |
@@ -1,81 +1,81 @@ |
||
1 | 1 | <?php |
2 | 2 | $collection['1']= $xpdo->newObject('modContentType'); |
3 | 3 | $collection['1']->fromArray(array ( |
4 | - 'id' => 1, |
|
5 | - 'name' => 'HTML', |
|
6 | - 'description' => 'HTML content', |
|
7 | - 'mime_type' => 'text/html', |
|
8 | - 'file_extensions' => '.html', |
|
9 | - 'headers' => 'NULL', |
|
10 | - 'binary' => 0, |
|
4 | + 'id' => 1, |
|
5 | + 'name' => 'HTML', |
|
6 | + 'description' => 'HTML content', |
|
7 | + 'mime_type' => 'text/html', |
|
8 | + 'file_extensions' => '.html', |
|
9 | + 'headers' => 'NULL', |
|
10 | + 'binary' => 0, |
|
11 | 11 | ), '', true, true); |
12 | 12 | $collection['2']= $xpdo->newObject('modContentType'); |
13 | 13 | $collection['2']->fromArray(array ( |
14 | - 'id' => 2, |
|
15 | - 'name' => 'XML', |
|
16 | - 'description' => 'XML content', |
|
17 | - 'mime_type' => 'text/xml', |
|
18 | - 'file_extensions' => '.xml', |
|
19 | - 'headers' => 'NULL', |
|
20 | - 'binary' => 0, |
|
14 | + 'id' => 2, |
|
15 | + 'name' => 'XML', |
|
16 | + 'description' => 'XML content', |
|
17 | + 'mime_type' => 'text/xml', |
|
18 | + 'file_extensions' => '.xml', |
|
19 | + 'headers' => 'NULL', |
|
20 | + 'binary' => 0, |
|
21 | 21 | ), '', true, true); |
22 | 22 | $collection['3']= $xpdo->newObject('modContentType'); |
23 | 23 | $collection['3']->fromArray(array ( |
24 | - 'id' => 3, |
|
25 | - 'name' => 'text', |
|
26 | - 'description' => 'plain text content', |
|
27 | - 'mime_type' => 'text/plain', |
|
28 | - 'file_extensions' => '.txt', |
|
29 | - 'headers' => 'NULL', |
|
30 | - 'binary' => 0, |
|
24 | + 'id' => 3, |
|
25 | + 'name' => 'text', |
|
26 | + 'description' => 'plain text content', |
|
27 | + 'mime_type' => 'text/plain', |
|
28 | + 'file_extensions' => '.txt', |
|
29 | + 'headers' => 'NULL', |
|
30 | + 'binary' => 0, |
|
31 | 31 | ), '', true, true); |
32 | 32 | $collection['4']= $xpdo->newObject('modContentType'); |
33 | 33 | $collection['4']->fromArray(array ( |
34 | - 'id' => 4, |
|
35 | - 'name' => 'CSS', |
|
36 | - 'description' => 'CSS content', |
|
37 | - 'mime_type' => 'text/css', |
|
38 | - 'file_extensions' => '.css', |
|
39 | - 'headers' => 'NULL', |
|
40 | - 'binary' => 0, |
|
34 | + 'id' => 4, |
|
35 | + 'name' => 'CSS', |
|
36 | + 'description' => 'CSS content', |
|
37 | + 'mime_type' => 'text/css', |
|
38 | + 'file_extensions' => '.css', |
|
39 | + 'headers' => 'NULL', |
|
40 | + 'binary' => 0, |
|
41 | 41 | ), '', true, true); |
42 | 42 | $collection['5']= $xpdo->newObject('modContentType'); |
43 | 43 | $collection['5']->fromArray(array ( |
44 | - 'id' => 5, |
|
45 | - 'name' => 'javascript', |
|
46 | - 'description' => 'javascript content', |
|
47 | - 'mime_type' => 'text/javascript', |
|
48 | - 'file_extensions' => '.js', |
|
49 | - 'headers' => 'NULL', |
|
50 | - 'binary' => 0, |
|
44 | + 'id' => 5, |
|
45 | + 'name' => 'javascript', |
|
46 | + 'description' => 'javascript content', |
|
47 | + 'mime_type' => 'text/javascript', |
|
48 | + 'file_extensions' => '.js', |
|
49 | + 'headers' => 'NULL', |
|
50 | + 'binary' => 0, |
|
51 | 51 | ), '', true, true); |
52 | 52 | $collection['6']= $xpdo->newObject('modContentType'); |
53 | 53 | $collection['6']->fromArray(array ( |
54 | - 'id' => 6, |
|
55 | - 'name' => 'RSS', |
|
56 | - 'description' => 'For RSS feeds', |
|
57 | - 'mime_type' => 'application/rss+xml', |
|
58 | - 'file_extensions' => '.rss', |
|
59 | - 'headers' => 'NULL', |
|
60 | - 'binary' => 0, |
|
54 | + 'id' => 6, |
|
55 | + 'name' => 'RSS', |
|
56 | + 'description' => 'For RSS feeds', |
|
57 | + 'mime_type' => 'application/rss+xml', |
|
58 | + 'file_extensions' => '.rss', |
|
59 | + 'headers' => 'NULL', |
|
60 | + 'binary' => 0, |
|
61 | 61 | ), '', true, true); |
62 | 62 | $collection['7']= $xpdo->newObject('modContentType'); |
63 | 63 | $collection['7']->fromArray(array ( |
64 | - 'id' => 7, |
|
65 | - 'name' => 'JSON', |
|
66 | - 'description' => 'JSON', |
|
67 | - 'mime_type' => 'application/json', |
|
68 | - 'file_extensions' => '.json', |
|
69 | - 'headers' => 'NULL', |
|
70 | - 'binary' => 0, |
|
64 | + 'id' => 7, |
|
65 | + 'name' => 'JSON', |
|
66 | + 'description' => 'JSON', |
|
67 | + 'mime_type' => 'application/json', |
|
68 | + 'file_extensions' => '.json', |
|
69 | + 'headers' => 'NULL', |
|
70 | + 'binary' => 0, |
|
71 | 71 | ), '', true, true); |
72 | 72 | $collection['8']= $xpdo->newObject('modContentType'); |
73 | 73 | $collection['8']->fromArray(array ( |
74 | - 'id' => 8, |
|
75 | - 'name' => 'PDF', |
|
76 | - 'description' => 'PDF Files', |
|
77 | - 'mime_type' => 'application/pdf', |
|
78 | - 'file_extensions' => '.pdf', |
|
79 | - 'headers' => 'NULL', |
|
80 | - 'binary' => 1, |
|
74 | + 'id' => 8, |
|
75 | + 'name' => 'PDF', |
|
76 | + 'description' => 'PDF Files', |
|
77 | + 'mime_type' => 'application/pdf', |
|
78 | + 'file_extensions' => '.pdf', |
|
79 | + 'headers' => 'NULL', |
|
80 | + 'binary' => 1, |
|
81 | 81 | ), '', true, true); |
82 | 82 | \ No newline at end of file |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | -$collection['1']= $xpdo->newObject('modContentType'); |
|
3 | -$collection['1']->fromArray(array ( |
|
2 | +$collection['1'] = $xpdo->newObject('modContentType'); |
|
3 | +$collection['1']->fromArray(array( |
|
4 | 4 | 'id' => 1, |
5 | 5 | 'name' => 'HTML', |
6 | 6 | 'description' => 'HTML content', |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | 'headers' => 'NULL', |
10 | 10 | 'binary' => 0, |
11 | 11 | ), '', true, true); |
12 | -$collection['2']= $xpdo->newObject('modContentType'); |
|
13 | -$collection['2']->fromArray(array ( |
|
12 | +$collection['2'] = $xpdo->newObject('modContentType'); |
|
13 | +$collection['2']->fromArray(array( |
|
14 | 14 | 'id' => 2, |
15 | 15 | 'name' => 'XML', |
16 | 16 | 'description' => 'XML content', |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | 'headers' => 'NULL', |
20 | 20 | 'binary' => 0, |
21 | 21 | ), '', true, true); |
22 | -$collection['3']= $xpdo->newObject('modContentType'); |
|
23 | -$collection['3']->fromArray(array ( |
|
22 | +$collection['3'] = $xpdo->newObject('modContentType'); |
|
23 | +$collection['3']->fromArray(array( |
|
24 | 24 | 'id' => 3, |
25 | 25 | 'name' => 'text', |
26 | 26 | 'description' => 'plain text content', |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | 'headers' => 'NULL', |
30 | 30 | 'binary' => 0, |
31 | 31 | ), '', true, true); |
32 | -$collection['4']= $xpdo->newObject('modContentType'); |
|
33 | -$collection['4']->fromArray(array ( |
|
32 | +$collection['4'] = $xpdo->newObject('modContentType'); |
|
33 | +$collection['4']->fromArray(array( |
|
34 | 34 | 'id' => 4, |
35 | 35 | 'name' => 'CSS', |
36 | 36 | 'description' => 'CSS content', |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | 'headers' => 'NULL', |
40 | 40 | 'binary' => 0, |
41 | 41 | ), '', true, true); |
42 | -$collection['5']= $xpdo->newObject('modContentType'); |
|
43 | -$collection['5']->fromArray(array ( |
|
42 | +$collection['5'] = $xpdo->newObject('modContentType'); |
|
43 | +$collection['5']->fromArray(array( |
|
44 | 44 | 'id' => 5, |
45 | 45 | 'name' => 'javascript', |
46 | 46 | 'description' => 'javascript content', |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | 'headers' => 'NULL', |
50 | 50 | 'binary' => 0, |
51 | 51 | ), '', true, true); |
52 | -$collection['6']= $xpdo->newObject('modContentType'); |
|
53 | -$collection['6']->fromArray(array ( |
|
52 | +$collection['6'] = $xpdo->newObject('modContentType'); |
|
53 | +$collection['6']->fromArray(array( |
|
54 | 54 | 'id' => 6, |
55 | 55 | 'name' => 'RSS', |
56 | 56 | 'description' => 'For RSS feeds', |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | 'headers' => 'NULL', |
60 | 60 | 'binary' => 0, |
61 | 61 | ), '', true, true); |
62 | -$collection['7']= $xpdo->newObject('modContentType'); |
|
63 | -$collection['7']->fromArray(array ( |
|
62 | +$collection['7'] = $xpdo->newObject('modContentType'); |
|
63 | +$collection['7']->fromArray(array( |
|
64 | 64 | 'id' => 7, |
65 | 65 | 'name' => 'JSON', |
66 | 66 | 'description' => 'JSON', |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | 'headers' => 'NULL', |
70 | 70 | 'binary' => 0, |
71 | 71 | ), '', true, true); |
72 | -$collection['8']= $xpdo->newObject('modContentType'); |
|
73 | -$collection['8']->fromArray(array ( |
|
72 | +$collection['8'] = $xpdo->newObject('modContentType'); |
|
73 | +$collection['8']->fromArray(array( |
|
74 | 74 | 'id' => 8, |
75 | 75 | 'name' => 'PDF', |
76 | 76 | 'description' => 'PDF Files', |
@@ -4,7 +4,7 @@ |
||
4 | 4 | */ |
5 | 5 | $collection[1]= $xpdo->newObject('modDashboard'); |
6 | 6 | $collection[1]->fromArray(array ( |
7 | - 'id' => 1, |
|
8 | - 'name' => 'Default', |
|
9 | - 'description' => '', |
|
7 | + 'id' => 1, |
|
8 | + 'name' => 'Default', |
|
9 | + 'description' => '', |
|
10 | 10 | ), '', true, true); |
11 | 11 | \ No newline at end of file |
@@ -2,8 +2,8 @@ |
||
2 | 2 | /** |
3 | 3 | * Default Dashboards |
4 | 4 | */ |
5 | -$collection[1]= $xpdo->newObject('modDashboard'); |
|
6 | -$collection[1]->fromArray(array ( |
|
5 | +$collection[1] = $xpdo->newObject('modDashboard'); |
|
6 | +$collection[1]->fromArray(array( |
|
7 | 7 | 'id' => 1, |
8 | 8 | 'name' => 'Default', |
9 | 9 | 'description' => '', |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | $templateGroups = array(); |
7 | 7 | |
8 | 8 | /* administrator group templates */ |
9 | -$templateGroups['1']= $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
9 | +$templateGroups['1'] = $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
10 | 10 | $templateGroups['1']->fromArray(array( |
11 | 11 | 'id' => 1, |
12 | 12 | 'name' => 'Admin', |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | )); |
15 | 15 | |
16 | 16 | /* Object group templates */ |
17 | -$templateGroups['2']= $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
17 | +$templateGroups['2'] = $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
18 | 18 | $templateGroups['2']->fromArray(array( |
19 | 19 | 'id' => 2, |
20 | 20 | 'name' => 'Object', |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | )); |
23 | 23 | |
24 | 24 | /* Resource group templates */ |
25 | -$templateGroups['3']= $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
25 | +$templateGroups['3'] = $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
26 | 26 | $templateGroups['3']->fromArray(array( |
27 | 27 | 'id' => 3, |
28 | 28 | 'name' => 'Resource', |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | )); |
31 | 31 | |
32 | 32 | /* Element group templates */ |
33 | -$templateGroups['4']= $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
33 | +$templateGroups['4'] = $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
34 | 34 | $templateGroups['4']->fromArray(array( |
35 | 35 | 'id' => 4, |
36 | 36 | 'name' => 'Element', |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | )); |
39 | 39 | |
40 | 40 | /* Media Source group templates */ |
41 | -$templateGroups['5']= $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
41 | +$templateGroups['5'] = $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
42 | 42 | $templateGroups['5']->fromArray(array( |
43 | 43 | 'id' => 5, |
44 | 44 | 'name' => 'MediaSource', |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | )); |
47 | 47 | |
48 | 48 | /* Namespace group templates */ |
49 | -$templateGroups['6']= $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
49 | +$templateGroups['6'] = $xpdo->newObject('modAccessPolicyTemplateGroup'); |
|
50 | 50 | $templateGroups['6']->fromArray(array( |
51 | 51 | 'id' => 6, |
52 | 52 | 'name' => 'Namespace', |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | $collection['0']= $xpdo->newObject('modContextSetting'); |
3 | 3 | $collection['0']->fromArray(array ( |
4 | - 'context_key' => 'mgr', |
|
5 | - 'key' => 'allow_tags_in_post', |
|
6 | - 'value' => '1', |
|
7 | - 'xtype' => 'combo-boolean', |
|
8 | - 'namespace' => 'core', |
|
9 | - 'area' => 'system', |
|
10 | - 'editedon' => NULL, |
|
4 | + 'context_key' => 'mgr', |
|
5 | + 'key' => 'allow_tags_in_post', |
|
6 | + 'value' => '1', |
|
7 | + 'xtype' => 'combo-boolean', |
|
8 | + 'namespace' => 'core', |
|
9 | + 'area' => 'system', |
|
10 | + 'editedon' => NULL, |
|
11 | 11 | ), '', true, true); |
12 | 12 | $collection['1']= $xpdo->newObject('modContextSetting'); |
13 | 13 | $collection['1']->fromArray(array ( |
14 | - 'context_key' => 'mgr', |
|
15 | - 'key' => 'modRequest.class', |
|
16 | - 'value' => 'modManagerRequest', |
|
17 | - 'xtype' => 'textfield', |
|
18 | - 'namespace' => 'core', |
|
19 | - 'area' => 'system', |
|
20 | - 'editedon' => NULL, |
|
14 | + 'context_key' => 'mgr', |
|
15 | + 'key' => 'modRequest.class', |
|
16 | + 'value' => 'modManagerRequest', |
|
17 | + 'xtype' => 'textfield', |
|
18 | + 'namespace' => 'core', |
|
19 | + 'area' => 'system', |
|
20 | + 'editedon' => NULL, |
|
21 | 21 | ), '', true, true); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | -$collection['0']= $xpdo->newObject('modContextSetting'); |
|
3 | -$collection['0']->fromArray(array ( |
|
2 | +$collection['0'] = $xpdo->newObject('modContextSetting'); |
|
3 | +$collection['0']->fromArray(array( |
|
4 | 4 | 'context_key' => 'mgr', |
5 | 5 | 'key' => 'allow_tags_in_post', |
6 | 6 | 'value' => '1', |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | 'area' => 'system', |
10 | 10 | 'editedon' => NULL, |
11 | 11 | ), '', true, true); |
12 | -$collection['1']= $xpdo->newObject('modContextSetting'); |
|
13 | -$collection['1']->fromArray(array ( |
|
12 | +$collection['1'] = $xpdo->newObject('modContextSetting'); |
|
13 | +$collection['1']->fromArray(array( |
|
14 | 14 | 'context_key' => 'mgr', |
15 | 15 | 'key' => 'modRequest.class', |
16 | 16 | 'value' => 'modManagerRequest', |
@@ -5,9 +5,9 @@ |
||
5 | 5 | */ |
6 | 6 | $collection[1]= $xpdo->newObject('sources.modMediaSource'); |
7 | 7 | $collection[1]->fromArray(array ( |
8 | - 'id' => 1, |
|
9 | - 'name' => 'Filesystem', |
|
10 | - 'description' => '', |
|
11 | - 'class_key' => 'sources.modFileMediaSource', |
|
12 | - 'properties' => array(), |
|
8 | + 'id' => 1, |
|
9 | + 'name' => 'Filesystem', |
|
10 | + 'description' => '', |
|
11 | + 'class_key' => 'sources.modFileMediaSource', |
|
12 | + 'properties' => array(), |
|
13 | 13 | ), '', true, true); |
14 | 14 | \ No newline at end of file |
@@ -3,8 +3,8 @@ |
||
3 | 3 | * Default Media Sources |
4 | 4 | * @var xPDO $xpdo |
5 | 5 | */ |
6 | -$collection[1]= $xpdo->newObject('sources.modMediaSource'); |
|
7 | -$collection[1]->fromArray(array ( |
|
6 | +$collection[1] = $xpdo->newObject('sources.modMediaSource'); |
|
7 | +$collection[1]->fromArray(array( |
|
8 | 8 | 'id' => 1, |
9 | 9 | 'name' => 'Filesystem', |
10 | 10 | 'description' => '', |
@@ -5,57 +5,57 @@ |
||
5 | 5 | $widgets = array(); |
6 | 6 | $widgets[1]= $xpdo->newObject('modDashboardWidget'); |
7 | 7 | $widgets[1]->fromArray(array ( |
8 | - 'name' => 'w_newsfeed', |
|
9 | - 'description' => 'w_newsfeed_desc', |
|
10 | - 'type' => 'file', |
|
11 | - 'size' => 'half', |
|
12 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-news.php', |
|
13 | - 'namespace' => 'core', |
|
14 | - 'lexicon' => 'core:dashboards', |
|
8 | + 'name' => 'w_newsfeed', |
|
9 | + 'description' => 'w_newsfeed_desc', |
|
10 | + 'type' => 'file', |
|
11 | + 'size' => 'half', |
|
12 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-news.php', |
|
13 | + 'namespace' => 'core', |
|
14 | + 'lexicon' => 'core:dashboards', |
|
15 | 15 | ), '', true, true); |
16 | 16 | |
17 | 17 | $widgets[2]= $xpdo->newObject('modDashboardWidget'); |
18 | 18 | $widgets[2]->fromArray(array ( |
19 | - 'name' => 'w_securityfeed', |
|
20 | - 'description' => 'w_securityfeed_desc', |
|
21 | - 'type' => 'file', |
|
22 | - 'size' => 'half', |
|
23 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-security.php', |
|
24 | - 'namespace' => 'core', |
|
25 | - 'lexicon' => 'core:dashboards', |
|
19 | + 'name' => 'w_securityfeed', |
|
20 | + 'description' => 'w_securityfeed_desc', |
|
21 | + 'type' => 'file', |
|
22 | + 'size' => 'half', |
|
23 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-security.php', |
|
24 | + 'namespace' => 'core', |
|
25 | + 'lexicon' => 'core:dashboards', |
|
26 | 26 | ), '', true, true); |
27 | 27 | |
28 | 28 | $widgets[3]= $xpdo->newObject('modDashboardWidget'); |
29 | 29 | $widgets[3]->fromArray(array ( |
30 | - 'name' => 'w_whosonline', |
|
31 | - 'description' => 'w_whosonline_desc', |
|
32 | - 'type' => 'file', |
|
33 | - 'size' => 'half', |
|
34 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-online.php', |
|
35 | - 'namespace' => 'core', |
|
36 | - 'lexicon' => 'core:dashboards', |
|
30 | + 'name' => 'w_whosonline', |
|
31 | + 'description' => 'w_whosonline_desc', |
|
32 | + 'type' => 'file', |
|
33 | + 'size' => 'half', |
|
34 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-online.php', |
|
35 | + 'namespace' => 'core', |
|
36 | + 'lexicon' => 'core:dashboards', |
|
37 | 37 | ), '', true, true); |
38 | 38 | |
39 | 39 | $widgets[4]= $xpdo->newObject('modDashboardWidget'); |
40 | 40 | $widgets[4]->fromArray(array ( |
41 | - 'name' => 'w_recentlyeditedresources', |
|
42 | - 'description' => 'w_recentlyeditedresources_desc', |
|
43 | - 'type' => 'file', |
|
44 | - 'size' => 'half', |
|
45 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-rer.php', |
|
46 | - 'namespace' => 'core', |
|
47 | - 'lexicon' => 'core:dashboards', |
|
41 | + 'name' => 'w_recentlyeditedresources', |
|
42 | + 'description' => 'w_recentlyeditedresources_desc', |
|
43 | + 'type' => 'file', |
|
44 | + 'size' => 'half', |
|
45 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-rer.php', |
|
46 | + 'namespace' => 'core', |
|
47 | + 'lexicon' => 'core:dashboards', |
|
48 | 48 | ), '', true, true); |
49 | 49 | |
50 | 50 | $widgets[5]= $xpdo->newObject('modDashboardWidget'); |
51 | 51 | $widgets[5]->fromArray(array ( |
52 | - 'name' => 'w_configcheck', |
|
53 | - 'description' => 'w_configcheck_desc', |
|
54 | - 'type' => 'file', |
|
55 | - 'size' => 'full', |
|
56 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.configcheck.php', |
|
57 | - 'namespace' => 'core', |
|
58 | - 'lexicon' => 'core:dashboards', |
|
52 | + 'name' => 'w_configcheck', |
|
53 | + 'description' => 'w_configcheck_desc', |
|
54 | + 'type' => 'file', |
|
55 | + 'size' => 'full', |
|
56 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.configcheck.php', |
|
57 | + 'namespace' => 'core', |
|
58 | + 'lexicon' => 'core:dashboards', |
|
59 | 59 | ), '', true, true); |
60 | 60 | |
61 | 61 | return $widgets; |
@@ -3,8 +3,8 @@ discard block |
||
3 | 3 | * Default Dashboard Widgets |
4 | 4 | */ |
5 | 5 | $widgets = array(); |
6 | -$widgets[1]= $xpdo->newObject('modDashboardWidget'); |
|
7 | -$widgets[1]->fromArray(array ( |
|
6 | +$widgets[1] = $xpdo->newObject('modDashboardWidget'); |
|
7 | +$widgets[1]->fromArray(array( |
|
8 | 8 | 'name' => 'w_newsfeed', |
9 | 9 | 'description' => 'w_newsfeed_desc', |
10 | 10 | 'type' => 'file', |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | 'lexicon' => 'core:dashboards', |
15 | 15 | ), '', true, true); |
16 | 16 | |
17 | -$widgets[2]= $xpdo->newObject('modDashboardWidget'); |
|
18 | -$widgets[2]->fromArray(array ( |
|
17 | +$widgets[2] = $xpdo->newObject('modDashboardWidget'); |
|
18 | +$widgets[2]->fromArray(array( |
|
19 | 19 | 'name' => 'w_securityfeed', |
20 | 20 | 'description' => 'w_securityfeed_desc', |
21 | 21 | 'type' => 'file', |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | 'lexicon' => 'core:dashboards', |
26 | 26 | ), '', true, true); |
27 | 27 | |
28 | -$widgets[3]= $xpdo->newObject('modDashboardWidget'); |
|
29 | -$widgets[3]->fromArray(array ( |
|
28 | +$widgets[3] = $xpdo->newObject('modDashboardWidget'); |
|
29 | +$widgets[3]->fromArray(array( |
|
30 | 30 | 'name' => 'w_whosonline', |
31 | 31 | 'description' => 'w_whosonline_desc', |
32 | 32 | 'type' => 'file', |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | 'lexicon' => 'core:dashboards', |
37 | 37 | ), '', true, true); |
38 | 38 | |
39 | -$widgets[4]= $xpdo->newObject('modDashboardWidget'); |
|
40 | -$widgets[4]->fromArray(array ( |
|
39 | +$widgets[4] = $xpdo->newObject('modDashboardWidget'); |
|
40 | +$widgets[4]->fromArray(array( |
|
41 | 41 | 'name' => 'w_recentlyeditedresources', |
42 | 42 | 'description' => 'w_recentlyeditedresources_desc', |
43 | 43 | 'type' => 'file', |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | 'lexicon' => 'core:dashboards', |
48 | 48 | ), '', true, true); |
49 | 49 | |
50 | -$widgets[5]= $xpdo->newObject('modDashboardWidget'); |
|
51 | -$widgets[5]->fromArray(array ( |
|
50 | +$widgets[5] = $xpdo->newObject('modDashboardWidget'); |
|
51 | +$widgets[5]->fromArray(array( |
|
52 | 52 | 'name' => 'w_configcheck', |
53 | 53 | 'description' => 'w_configcheck_desc', |
54 | 54 | 'type' => 'file', |