concrete/src/Area/Area.php
public function export($p, $page)
    {
        $area = $p->addChild('area');
        $area->addAttribute('name', $this->getAreaHandle());
        $blocks = $page->getBlocks($this->getAreaHandle());
        $c = $this->getAreaCollectionObject();
        $style = $c->getAreaCustomStyle($this);
        if (is_object($style)) {
            $set = $style->getStyleSet();
            $set->export($area);
        }
        $wrapper = $area->addChild('blocks');
        foreach ($blocks as $bl) {
            $bl->export($wrapper);
        }
    }
public function export($p, $page)
    {
        $area = $p->addChild('area');
        $area->addAttribute('name', $this->getAreaHandle());
        $blocks = $page->getBlocks($this->getAreaHandle());
        $c = $this->getAreaCollectionObject();
        $style = $c->getAreaCustomStyle($this);
        if (is_object($style)) {
            $set = $style->getStyleSet();
            $set->export($area);
        }
        $wrapper = $area->addChild('blocks');
        foreach ($blocks as $bl) {
            $bl->export($wrapper);
        }
    }
public function export ( $ p , $ page ) { $ area = $ p -> addChild ( 'area' ) ; $ area -> addAttribute ( 'name' , $ this -> getAreaHandle ( ) ) ; $ blocks = $ page -> getBlocks ( $ this -> getAreaHandle ( ) ) ; $ c = $ this -> getAreaCollectionObject ( ) ; $ style = $ c -> getAreaCustomStyle ( $ this ) ; if ( is_object ( $ style ) ) { $ set = $ style -> getStyleSet ( ) ; $ set -> export ( $ area ) ; } $ wrapper = $ area -> addChild ( 'blocks' ) ; foreach ( $ blocks as $ bl ) { $ bl -> export ( $ wrapper ) ; } }
Exports the area to content format.

@param \SimpleXMLElement $p
@param Page $page
Exports the area to content format .