public function getAdminLanguages() {
        $response=CodeBank_ClientAPI::responseBase();
        
        $languages=SnippetLanguage::get();
        foreach($languages as $lang) {
            $response['data'][]=array(
                                    'id'=>$lang->ID,
                                    'language'=>$lang->Name,
                                    'file_extension'=>$lang->FileExtension,
                                    'shjh_code'=>$lang->HighlightCode,
                                    'user_language'=>$lang->UserLanguage,
                                    'snippetCount'=>$lang->Snippets()->Count(),
                                    'hidden'=>$lang->Hidden
                                );
        }
        
        
        return $response;
    }
public function getAdminLanguages() {
        $response=CodeBank_ClientAPI::responseBase();
        
        $languages=SnippetLanguage::get();
        foreach($languages as $lang) {
            $response['data'][]=array(
                                    'id'=>$lang->ID,
                                    'language'=>$lang->Name,
                                    'file_extension'=>$lang->FileExtension,
                                    'shjh_code'=>$lang->HighlightCode,
                                    'user_language'=>$lang->UserLanguage,
                                    'snippetCount'=>$lang->Snippets()->Count(),
                                    'hidden'=>$lang->Hidden
                                );
        }
        
        
        return $response;
    }
public function getAdminLanguages ( ) { $ response = CodeBank_ClientAPI :: responseBase ( ) ; $ languages = SnippetLanguage :: get ( ) ; foreach ( $ languages as $ lang ) { $ response [ 'data' ] [ ] = array ( 'id' => $ lang -> ID , 'language' => $ lang -> Name , 'file_extension' => $ lang -> FileExtension , 'shjh_code' => $ lang -> HighlightCode , 'user_language' => $ lang -> UserLanguage , 'snippetCount' => $ lang -> Snippets ( ) -> Count ( ) , 'hidden' => $ lang -> Hidden ) ; } return $ response ; }
Gets the list of languages with snippet counts
@return {array} Standard response base
Gets the list of languages with snippet counts