concrete/src/Permission/Key/Key.php
public static function exportList($xml)
    {
        $categories = PermissionKeyCategory::getList();
        $pxml = $xml->addChild('permissionkeys');
        foreach ($categories as $cat) {
            $permissions = static::getList($cat->getPermissionKeyCategoryHandle());
            foreach ($permissions as $p) {
                $p->export($pxml);
            }
        }
    }
public static function exportList($xml)
    {
        $categories = PermissionKeyCategory::getList();
        $pxml = $xml->addChild('permissionkeys');
        foreach ($categories as $cat) {
            $permissions = static::getList($cat->getPermissionKeyCategoryHandle());
            foreach ($permissions as $p) {
                $p->export($pxml);
            }
        }
    }
public static function exportList ( $ xml ) { $ categories = PermissionKeyCategory :: getList ( ) ; $ pxml = $ xml -> addChild ( 'permissionkeys' ) ; foreach ( $ categories as $ cat ) { $ permissions = static :: getList ( $ cat -> getPermissionKeyCategoryHandle ( ) ) ; foreach ( $ permissions as $ p ) { $ p -> export ( $ pxml ) ; } } }
Export the list of all permissions of this category to a SimpleXMLElement instance.

@param \SimpleXMLElement $xml
Export the list of all permissions of this category to a SimpleXMLElement instance .