@@ -30,7 +30,7 @@ class DbAclSchema extends CakeSchema {
3030 * @param array $event The event data.
3131 * @return bool Success
3232 */
33- public function before ($ event = array () ) {
33+ public function before ($ event = [] ) {
3434 return true ;
3535 }
3636
@@ -40,62 +40,62 @@ public function before($event = array()) {
4040 * @param array $event The event data.
4141 * @return void
4242 */
43- public function after ($ event = array () ) {
43+ public function after ($ event = [] ) {
4444 }
4545
4646/**
4747 * ACO - Access Control Object - Something that is wanted
4848 */
49- public $ acos = array (
50- 'id ' => array ( 'type ' => 'integer ' , 'null ' => false , 'default ' => null , 'length ' => 10 , 'key ' => 'primary ' ) ,
51- 'parent_id ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
52- 'model ' => array ( 'type ' => 'string ' , 'null ' => true ) ,
53- 'foreign_key ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
54- 'alias ' => array ( 'type ' => 'string ' , 'null ' => true ) ,
55- 'lft ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
56- 'rght ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
57- 'indexes ' => array (
58- 'PRIMARY ' => array ( 'column ' => 'id ' , 'unique ' => 1 ) ,
59- 'idx_acos_lft_rght ' => array ( 'column ' => array ( 'lft ' , 'rght ' ) , 'unique ' => 0 ) ,
60- 'idx_acos_alias ' => array ( 'column ' => 'alias ' , 'unique ' => 0 )
61- )
62- ) ;
49+ public $ acos = [
50+ 'id ' => [ 'type ' => 'integer ' , 'null ' => false , 'default ' => null , 'length ' => 10 , 'key ' => 'primary ' ] ,
51+ 'parent_id ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
52+ 'model ' => [ 'type ' => 'string ' , 'null ' => true ] ,
53+ 'foreign_key ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
54+ 'alias ' => [ 'type ' => 'string ' , 'null ' => true ] ,
55+ 'lft ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
56+ 'rght ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
57+ 'indexes ' => [
58+ 'PRIMARY ' => [ 'column ' => 'id ' , 'unique ' => 1 ] ,
59+ 'idx_acos_lft_rght ' => [ 'column ' => [ 'lft ' , 'rght ' ] , 'unique ' => 0 ] ,
60+ 'idx_acos_alias ' => [ 'column ' => 'alias ' , 'unique ' => 0 ]
61+ ]
62+ ] ;
6363
6464/**
6565 * ARO - Access Request Object - Something that wants something
6666 */
67- public $ aros = array (
68- 'id ' => array ( 'type ' => 'integer ' , 'null ' => false , 'default ' => null , 'length ' => 10 , 'key ' => 'primary ' ) ,
69- 'parent_id ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
70- 'model ' => array ( 'type ' => 'string ' , 'null ' => true ) ,
71- 'foreign_key ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
72- 'alias ' => array ( 'type ' => 'string ' , 'null ' => true ) ,
73- 'lft ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
74- 'rght ' => array ( 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ) ,
75- 'indexes ' => array (
76- 'PRIMARY ' => array ( 'column ' => 'id ' , 'unique ' => 1 ) ,
77- 'idx_aros_lft_rght ' => array ( 'column ' => array ( 'lft ' , 'rght ' ) , 'unique ' => 0 ) ,
78- 'idx_aros_alias ' => array ( 'column ' => 'alias ' , 'unique ' => 0 )
79- )
80- ) ;
67+ public $ aros = [
68+ 'id ' => [ 'type ' => 'integer ' , 'null ' => false , 'default ' => null , 'length ' => 10 , 'key ' => 'primary ' ] ,
69+ 'parent_id ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
70+ 'model ' => [ 'type ' => 'string ' , 'null ' => true ] ,
71+ 'foreign_key ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
72+ 'alias ' => [ 'type ' => 'string ' , 'null ' => true ] ,
73+ 'lft ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
74+ 'rght ' => [ 'type ' => 'integer ' , 'null ' => true , 'default ' => null , 'length ' => 10 ] ,
75+ 'indexes ' => [
76+ 'PRIMARY ' => [ 'column ' => 'id ' , 'unique ' => 1 ] ,
77+ 'idx_aros_lft_rght ' => [ 'column ' => [ 'lft ' , 'rght ' ] , 'unique ' => 0 ] ,
78+ 'idx_aros_alias ' => [ 'column ' => 'alias ' , 'unique ' => 0 ]
79+ ]
80+ ] ;
8181
8282/**
8383 * Used by the Cake::Model:Permission class.
8484 * Checks if the given $aro has access to action $action in $aco.
8585 */
86- public $ aros_acos = array (
87- 'id ' => array ( 'type ' => 'integer ' , 'null ' => false , 'default ' => null , 'length ' => 10 , 'key ' => 'primary ' ) ,
88- 'aro_id ' => array ( 'type ' => 'integer ' , 'null ' => false , 'length ' => 10 , 'key ' => 'index ' ) ,
89- 'aco_id ' => array ( 'type ' => 'integer ' , 'null ' => false , 'length ' => 10 ) ,
90- '_create ' => array ( 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ) ,
91- '_read ' => array ( 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ) ,
92- '_update ' => array ( 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ) ,
93- '_delete ' => array ( 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ) ,
94- 'indexes ' => array (
95- 'PRIMARY ' => array ( 'column ' => 'id ' , 'unique ' => 1 ) ,
96- 'ARO_ACO_KEY ' => array ( 'column ' => array ( 'aro_id ' , 'aco_id ' ) , 'unique ' => 1 ) ,
97- 'idx_aco_id ' => array ( 'column ' => 'aco_id ' , 'unique ' => 0 )
98- )
99- ) ;
86+ public $ aros_acos = [
87+ 'id ' => [ 'type ' => 'integer ' , 'null ' => false , 'default ' => null , 'length ' => 10 , 'key ' => 'primary ' ] ,
88+ 'aro_id ' => [ 'type ' => 'integer ' , 'null ' => false , 'length ' => 10 , 'key ' => 'index ' ] ,
89+ 'aco_id ' => [ 'type ' => 'integer ' , 'null ' => false , 'length ' => 10 ] ,
90+ '_create ' => [ 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ] ,
91+ '_read ' => [ 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ] ,
92+ '_update ' => [ 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ] ,
93+ '_delete ' => [ 'type ' => 'string ' , 'null ' => false , 'default ' => '0 ' , 'length ' => 2 ] ,
94+ 'indexes ' => [
95+ 'PRIMARY ' => [ 'column ' => 'id ' , 'unique ' => 1 ] ,
96+ 'ARO_ACO_KEY ' => [ 'column ' => [ 'aro_id ' , 'aco_id ' ] , 'unique ' => 1 ] ,
97+ 'idx_aco_id ' => [ 'column ' => 'aco_id ' , 'unique ' => 0 ]
98+ ]
99+ ] ;
100100
101101}
0 commit comments