library/Garp/Model/Behavior/Article.php
protected function _convertContentNodeLayout(array $contentNodeRow) {
        $contentTypes = $this->_config['contentTypes'];
        $contentNode = array();
        foreach ($contentTypes as $contentType) {
            $contentType = $this->_extractContentTypeAlias($contentType);
            if ($contentNodeRow[$contentType]) {
                $modelName = explode('_', $contentType);
                $modelName = array_pop($modelName);
                $contentNode['model'] = $modelName;
                $contentNode['type']  = $contentNodeRow['type'];
                $contentNode['data']  = $contentNodeRow[$contentType];
                $contentNode['columns'] = $contentNodeRow['columns'];
                $contentNode['classes'] = $contentNodeRow['classes'];
                break;
            }
        }
        return $contentNode;
    }
protected function _convertContentNodeLayout(array $contentNodeRow) {
        $contentTypes = $this->_config['contentTypes'];
        $contentNode = array();
        foreach ($contentTypes as $contentType) {
            $contentType = $this->_extractContentTypeAlias($contentType);
            if ($contentNodeRow[$contentType]) {
                $modelName = explode('_', $contentType);
                $modelName = array_pop($modelName);
                $contentNode['model'] = $modelName;
                $contentNode['type']  = $contentNodeRow['type'];
                $contentNode['data']  = $contentNodeRow[$contentType];
                $contentNode['columns'] = $contentNodeRow['columns'];
                $contentNode['classes'] = $contentNodeRow['classes'];
                break;
            }
        }
        return $contentNode;
    }
protected function _convertContentNodeLayout ( array $ contentNodeRow ) { $ contentTypes = $ this -> _config [ 'contentTypes' ] ; $ contentNode = array ( ) ; foreach ( $ contentTypes as $ contentType ) { $ contentType = $ this -> _extractContentTypeAlias ( $ contentType ) ; if ( $ contentNodeRow [ $ contentType ] ) { $ modelName = explode ( '_' , $ contentType ) ; $ modelName = array_pop ( $ modelName ) ; $ contentNode [ 'model' ] = $ modelName ; $ contentNode [ 'type' ] = $ contentNodeRow [ 'type' ] ; $ contentNode [ 'data' ] = $ contentNodeRow [ $ contentType ] ; $ contentNode [ 'columns' ] = $ contentNodeRow [ 'columns' ] ; $ contentNode [ 'classes' ] = $ contentNodeRow [ 'classes' ] ; break ; } } return $ contentNode ; }
Convert bound ContentNodes to a more concise format.

@param array $contentNodeRow
@return array
Convert bound ContentNodes to a more concise format .