コード例 #1
0
ファイル: connectionObjects.php プロジェクト: kafruhs/fws
/**
 * Created by PhpStorm.
 * User: Alex
 * Date: 28.05.2015
 * Time: 12:09
 */

require_once dirname(dirname(dirname(__DIR__))) . '/config.php';

$group = new Group();
$groupBenutzer = $group->getGroupLKByName('Benutzer');
$groupModerator = $group->getGroupLKByName('Moderator');
$groupAdministrator = $group->getGroupLKByName('Administrator');

$permission = new permission();
$permissionBenutzer = $permission->getpermissionLKByName('Benutzer');
$permissionModerator = $permission->getpermissionLKByName('Moderator');
$permissionAdministrator = $permission->getpermissionLKByName('Administrator');

$connections = [
    'ConnUserGroup' => [
        1 => [
            $groupBenutzer,
            $groupModerator,
            $groupAdministrator
        ]
    ],
    'ConnGroupRight' => [
         $groupBenutzer => [$permissionBenutzer],
         $groupModerator => [$permissionModerator],
         $groupAdministrator => [$permissionAdministrator],