original_string: public function getPackageInfo($data) {
          $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;
          }
          
          
          $package=SnippetPackage::get()->byID(intval($data->id));
          if(!empty($package) && $package!==false && $package->ID!=0) {
              $response['data']=array(
                                      'id'=>$package->ID,
                                      'title'=>$package->Title,
                                      'snippets'=>$this->overviewList($package->Snippets(), 'Title', 'ID', 'Language.Title')
                                  );
              
              
              $response['status']='HELO';
          }else {
              $response['status']='EROR';
              $response['message']=_t('CodeBankAPI.PACKAGE_NOT_FOUND', '_Package not found');
          }
          
          return $response;
      }
code: public function getPackageInfo($data) {
          $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;
          }
          
          
          $package=SnippetPackage::get()->byID(intval($data->id));
          if(!empty($package) && $package!==false && $package->ID!=0) {
              $response['data']=array(
                                      'id'=>$package->ID,
                                      'title'=>$package->Title,
                                      'snippets'=>$this->overviewList($package->Snippets(), 'Title', 'ID', 'Language.Title')
                                  );
              
              
              $response['status']='HELO';
          }else {
              $response['status']='EROR';
              $response['message']=_t('CodeBankAPI.PACKAGE_NOT_FOUND', '_Package not found');
          }
          
          return $response;
      }
code_tokens: public function getPackageInfo ( $ data ) { $ 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 ; } $ package = SnippetPackage :: get ( ) -> byID ( intval ( $ data -> id ) ) ; if ( ! empty ( $ package ) && $ package !== false && $ package -> ID != 0 ) { $ response [ 'data' ] = array ( 'id' => $ package -> ID , 'title' => $ package -> Title , 'snippets' => $ this -> overviewList ( $ package -> Snippets ( ) , 'Title' , 'ID' , 'Language.Title' ) ) ; $ response [ 'status' ] = 'HELO' ; } else { $ response [ 'status' ] = 'EROR' ; $ response [ 'message' ] = _t ( 'CodeBankAPI.PACKAGE_NOT_FOUND' , '_Package not found' ) ; } return $ response ; }
docstring: Gets the details of a package
  @param {stdClass} $data Data passed from ActionScript
  @return {array} Standard response base
docstring_tokens: Gets the details of a package