Example #1
0
    $PermissionsCampusAdmin = new RowManager_PermissionsCampusAdminManager();
    $PermissionsCampusAdmin->dropTable();
    $PermissionsCampusAdmin->createTable();
    /*
     * PermissionsGroupAdmin Table
     *
     * Contains the relationship between viewer and group. Group admin can only access the group that they are assign to.
     *
     * permissionsGroupAdmin_id [INTEGER]  ID of the group admin permissions
     * viewer_id [INTEGER]  ID of the viewer
     * group_id [INTEGER]  ID of the group
     * permissionsGroupAdmin_emailNotification [INTEGER]  To send the email notification to the user?
     * permissionsGroupAdmin_admin [INTEGER]  Indicate if the user is the admin for the group.
     */
    $PermissionsGroupAdmin = new RowManager_PermissionsGroupAdminManager();
    $PermissionsGroupAdmin->dropTable();
    $PermissionsGroupAdmin->createTable();
    /*
     * PermissionsSuperAdmin Table
     *
     * Contains all the super admins. Super Admin can access everything in the scheduler.
     *
     * permissionsSuperAdmin_id [INTEGER]  ID of the Super Admin Permissions
     * viewer_id [INTEGER]  ID of the viewer
     */
    $PermissionsSuperAdmin = new RowManager_PermissionsSuperAdminManager();
    $PermissionsSuperAdmin->dropTable();
    $PermissionsSuperAdmin->createTable();
    /*[RAD_DAOBJ_TABLE]*/
} else {
    echo 'Skipping Tables ... <br>';