library/Garp/Model/Behavior/Article.php
protected function _getValidChapterData($chapterData) {
        $chapterData = $chapterData instanceof Garp_Util_Configuration ?
            $chapterData : new Garp_Util_Configuration($chapterData);
        $chapterData
            ->obligate('content')
            ->setDefault('type', '');
        return $chapterData;
    }
protected function _getValidChapterData($chapterData) {
        $chapterData = $chapterData instanceof Garp_Util_Configuration ?
            $chapterData : new Garp_Util_Configuration($chapterData);
        $chapterData
            ->obligate('content')
            ->setDefault('type', '');
        return $chapterData;
    }
protected function _getValidChapterData ( $ chapterData ) { $ chapterData = $ chapterData instanceof Garp_Util_Configuration ? $ chapterData : new Garp_Util_Configuration ( $ chapterData ) ; $ chapterData -> obligate ( 'content' ) -> setDefault ( 'type' , '' ) ; return $ chapterData ; }
Convert chapter to Garp_Util_Configuration and validate its keys.

@param array|Garp_Util_Configuration $chapterData
@return Garp_Util_Configuration
Convert chapter to Garp_Util_Configuration and validate its keys .