original_string: public function getPackages() {
          $response=CodeBank_ClientAPI::responseBase();
          
          //Ensure logged in
          if(!Permission::check('CODE_BANK_ACCESS')) {
              $response['status']='EROR';
              $response['message']=_t('CodeBankAPI.PERMISSION_DENINED', '_Permission Denied');
              
              return $response;
          }
          
          
          $response['data']=$this->overviewList(SnippetPackage::get());
          
          
          return $response;
      }
code: public function getPackages() {
          $response=CodeBank_ClientAPI::responseBase();
          
          //Ensure logged in
          if(!Permission::check('CODE_BANK_ACCESS')) {
              $response['status']='EROR';
              $response['message']=_t('CodeBankAPI.PERMISSION_DENINED', '_Permission Denied');
              
              return $response;
          }
          
          
          $response['data']=$this->overviewList(SnippetPackage::get());
          
          
          return $response;
      }
code_tokens: public function getPackages ( ) { $ response = CodeBank_ClientAPI :: responseBase ( ) ; //Ensure logged in if ( ! Permission :: check ( 'CODE_BANK_ACCESS' ) ) { $ response [ 'status' ] = 'EROR' ; $ response [ 'message' ] = _t ( 'CodeBankAPI.PERMISSION_DENINED' , '_Permission Denied' ) ; return $ response ; } $ response [ 'data' ] = $ this -> overviewList ( SnippetPackage :: get ( ) ) ; return $ response ; }
docstring: Gets the list of packages
  @return {array} Standard response base
docstring_tokens: Gets the list of packages