Subversion Repositories computer_asset_manager_v2

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
46 rodolico 1
<?php
2
   /*
3
    * This contains the structure to be added to the user class
4
    */
5
   $customFields = array( 
6
      'tables' => array(
7
         'users' => array(
8
            'fields' => array(
9
               'restrictions' => array(
10
                  // For Users class
11
                     // this will be the display label on the form
52 rodolico 12
                     'label'  => 'Restrictions',
46 rodolico 13
                     // the input type to use for data entry
14
                     'html type' => 'textarea',
15
                     // you can only edit this if an admin and changing someone
16
                     // else' record
17
                     'restrict' => true,
18
                     // will be displayed on a hover in HTML5 (ie, title=)
52 rodolico 19
                     'instructions' => 'Enter code to restrict user access. See documentation',
46 rodolico 20
                     // this is entered in an empty box, ie placeholder=
52 rodolico 21
                     'hint'     => '[owner]<br />ownername',
46 rodolico 22
                     // for Data Source
52 rodolico 23
                     'dbColumn'  =>  'restrictions',
46 rodolico 24
                     // actual mySQL column type
25
                     'type'      => 'text',
26
                     // set it to not null if we build the table ourselves
51 rodolico 27
                     'required'  => false
46 rodolico 28
                     ),
29
               'email' => array(
30
                  // For Users class
31
                     // this will be the display label on the form
32
                     'label'  => 'email address',
33
                     // the input type to use for data entry
34
                     'html type' => 'text',
35
                     // you can only edit this if an admin and changing someone
36
                     // else' record
37
                     'restrict' => true,
38
                     // will be displayed on a hover in HTML5 (ie, title=)
39
                     'instructions' => 'Used to communicate with user',
40
                     // this is entered in an empty box, ie placeholder=
41
                     'hint'     => 'Enter Valid e-mail address',
42
                     // for Data Source
43
                     'dbColumn'  =>  'email',
44
                     // actual mySQL column type, varchar(64)
45
                     'type'      => 'varchar',
46
                     'size'      => 64,
47
                     // set it to not null if we build the table ourselves
48
                     'required'  => false,
49
                     ),
50
                  )
51
               )
52
            )
53
      );
54
 
55
      $permissions = array(
50 rodolico 56
         array('Menu', 'menu_home', 'Home Menu', 1),
57
         array('Menu', 'menu_owner', 'Owner Menu', 1),
58
         array('Menu', 'menu_location', 'Location Menu', 1),
59
         array('Menu', 'menu_device', 'Device Menu', 1),
60
         array('Menu', 'menu_report', 'Report Menu', 1),
47 rodolico 61
         array('Main', 'owner_edit', 'Edit Owner', 1),
62
         array('Main', 'owner_add', 'Add Owner', 1),
63
         array('Main', 'owner_del', 'Delete Owner', 0),
64
         array('Main', 'location_edit', 'Edit Location', 1),
65
         array('Main', 'location_add', 'Add Location', 1),
66
         array('Main', 'location_del', 'Delete Location', 0),
67
         array('Main', 'device_edit', 'Edit Device', 1),
68
         array('Main', 'device_add', 'Add Device', 1),
69
         array('Main', 'device_del', 'Delete Device', 0),
46 rodolico 70
      );
71
 
72
?>
73