diff --git a/utils/xmldump.php b/utils/xmldump.php index cfb447aa4..84e8e81ed 100644 --- a/utils/xmldump.php +++ b/utils/xmldump.php @@ -100,6 +100,7 @@ if(isset($options['skip-root'])) { $statistic = array( 'documents'=>0, 'folders'=>0, + 'roles'=>0, 'users'=>0, 'groups'=>0, 'attributedefinitions'=>0, @@ -477,6 +478,24 @@ $dms->setRootFolderID($settings->_rootFolderID); echo "\n"; echo "getDBVersion(), 1, 3))."\" date=\"".date('Y-m-d H:i:s')."\">\n"; +/* Dump roles {{{ */ +if(!$sections || in_array('roles', $sections)) { +$roles = $dms->getAllRoles(); +if($roles) { + echo "\n"; + foreach ($roles as $role) { + echo " getId()."\">\n"; + echo " ".wrapWithCData($role->getName())."\n"; + echo " ".$role->getRole()."\n"; + echo " ".implode(',', $role->getNoAccess())."\n"; + echo " \n"; + $statistic['roles']++; + } + echo "\n"; +} +} +/* }}} */ + /* Dump users {{{ */ if(!$sections || in_array('users', $sections)) { $users = $dms->getAllUsers(); @@ -491,7 +510,7 @@ if($users) { echo " ".wrapWithCData($user->getComment())."\n"; echo " ".$user->getLanguage()."\n"; echo " ".$user->getTheme()."\n"; - echo " ".$user->getRole()."\n"; + echo " ".$user->getRole()->getID()."\n"; echo " ".$user->isHidden()."\n"; echo " ".$user->isDisabled()."\n"; echo " ".$user->getPwdExpiration()."\n"; @@ -682,6 +701,7 @@ if($workflows) { echo " getID()."\">\n"; echo " ".$workflow->getName()."\n"; echo " ".$workflow->getInitState()->getID()."\n"; + echo " ".wrapWithCData($workflow->getLayoutData())."\n"; if($transitions = $workflow->getTransitions()) { echo " \n"; foreach($transitions as $transition) {