FOSSology  4.4.0
Open Source License Compliance by Open Source Software
FreshmeatRdfs Class Reference
Collaboration diagram for FreshmeatRdfs:
Collaboration graph

Public Member Functions

 Uncompress ($file)
 
 FindInProjInfo ($name, $search_space)
 
 XtractProjInfo ($rdf_file)
 
 write2file ($array_var)
 

Public Attributes

 $error_code = NULL
 
 $error_out = array()
 
 $uncompresser = 'bunzip2'
 
 $uncompressed_file = NULL
 

Private Attributes

 $project_info = array ()
 

Detailed Description

Class to deal with freshmeat rdfs.

To download a fresmeat rdf, see the class GetFreshMeatRdf.

Version
"$Id: FreshmeatRdfs.php 851 2008-06-28 05:18:46Z rrando $"

Created on Jun 6, 2008

Definition at line 18 of file FreshmeatRdfs.php.

Member Function Documentation

◆ FindInProjInfo()

FreshmeatRdfs::FindInProjInfo (   $name,
  $search_space 
)

Given an array of projects, find a project in the array.

Parameters
string$namepackage name
array$search_spacethe array of packages
Returns
True/False public function FindInProjInfo
Parameters
string$nameproject name to find
array$search_spacethe array to search

NOTE: project names are not standard. The names Open Logic uses may not be the same as the name in freshmeat (for the same project).

Additionally, the names may not be spelled the same or have the same capitalization.

Definition at line 68 of file FreshmeatRdfs.php.

◆ XtractProjInfo()

FreshmeatRdfs::XtractProjInfo (   $rdf_file)

method: XtractProjInfo

Reads the input file into a structure and returns the structure sorted by project name. See the internal comments for the format of the structure.

The input file is expected to be in the FreashMeat rdf format.

Parameters
string$rdf_filepath to xml file in FM rdf format
Returns
array of projects (see internal notes)
Author
mark..nosp@m.dono.nosp@m.hoe@h.nosp@m.p.co.nosp@m.m
Version
"$Id: FreshmeatRdfs.php 851 2008-06-28 05:18:46Z rrando $"
Todo:
think about making this a class that can give back any number of fields.

Definition at line 121 of file FreshmeatRdfs.php.


The documentation for this class was generated from the following file: