library/Garp/Model/Behavior/Article.php
protected function _convertChapterLayout(array $chapterRow) {
        $chapter = array();
        $chapter['type'] = $chapterRow['type'];
        if (!isset($chapterRow['content'])) {
            return $chapter;
        }
        $chapter['content'] = array_map(
            array($this, '_convertContentNodeLayout'),
            $chapterRow['content']
        );
        return $chapter;
    }
protected function _convertChapterLayout(array $chapterRow) {
        $chapter = array();
        $chapter['type'] = $chapterRow['type'];
        if (!isset($chapterRow['content'])) {
            return $chapter;
        }
        $chapter['content'] = array_map(
            array($this, '_convertContentNodeLayout'),
            $chapterRow['content']
        );
        return $chapter;
    }
protected function _convertChapterLayout ( array $ chapterRow ) { $ chapter = array ( ) ; $ chapter [ 'type' ] = $ chapterRow [ 'type' ] ; if ( ! isset ( $ chapterRow [ 'content' ] ) ) { return $ chapter ; } $ chapter [ 'content' ] = array_map ( array ( $ this , '_convertContentNodeLayout' ) , $ chapterRow [ 'content' ] ) ; return $ chapter ; }
Convert bound Chapters to a more concise format.

@param array $chapterRow
@return array
Convert bound Chapters to a more concise format .