concrete/src/Block/BlockType/Set.php
public function export($axml)
    {
        $bset = $axml->addChild('blocktypeset');
        $bset->addAttribute('handle', $this->getBlockTypeSetHandle());
        $bset->addAttribute('name', $this->getBlockTypeSetName());
        $bset->addAttribute('package', $this->getPackageHandle());
        $types = $this->getBlockTypes();
        foreach ($types as $bt) {
            $typenode = $bset->addChild('blocktype');
            $typenode->addAttribute('handle', $bt->getBlockTypeHandle());
        }

        return $bset;
    }
public function export($axml)
    {
        $bset = $axml->addChild('blocktypeset');
        $bset->addAttribute('handle', $this->getBlockTypeSetHandle());
        $bset->addAttribute('name', $this->getBlockTypeSetName());
        $bset->addAttribute('package', $this->getPackageHandle());
        $types = $this->getBlockTypes();
        foreach ($types as $bt) {
            $typenode = $bset->addChild('blocktype');
            $typenode->addAttribute('handle', $bt->getBlockTypeHandle());
        }

        return $bset;
    }
public function export ( $ axml ) { $ bset = $ axml -> addChild ( 'blocktypeset' ) ; $ bset -> addAttribute ( 'handle' , $ this -> getBlockTypeSetHandle ( ) ) ; $ bset -> addAttribute ( 'name' , $ this -> getBlockTypeSetName ( ) ) ; $ bset -> addAttribute ( 'package' , $ this -> getPackageHandle ( ) ) ; $ types = $ this -> getBlockTypes ( ) ; foreach ( $ types as $ bt ) { $ typenode = $ bset -> addChild ( 'blocktype' ) ; $ typenode -> addAttribute ( 'handle' , $ bt -> getBlockTypeHandle ( ) ) ; } return $ bset ; }
Export this set to a SimpleXMLElement element.

@param \SimpleXMLElement $axml The parent SimpleXMLElement element

@return \SimpleXMLElement returns the newly created SimpleXMLElement element representing this set
Export this set to a SimpleXMLElement element .