Property | Type | Description | |
---|---|---|---|
$packages | |||
$url | The url to the index.xml file | ||
$useCache | boolean |
Method | Description | |
---|---|---|
__construct ( string $url = 'https://raw.githubusercontent.com/yooper/pta_data/gh-pages/index.xml', boolean $useCache = false ) | ||
getPackages ( ) : array | Returns an array of packages available for download from the nltk project | |
getUrl ( ) : string | Returns the URL that file_get_contents is run against | |
getXmlContent ( ) : SimpleXMLElement | Uses file_get_contents to pull down the content from the url |
Method | Description | |
---|---|---|
getCacheFileName ( ) : string | ||
getUseCache ( ) : boolean | Get the useCache value |
public __construct ( string $url = 'https://raw.githubusercontent.com/yooper/pta_data/gh-pages/index.xml', boolean $useCache = false ) | ||
$url | string | Default value is provided, but you can override |
$useCache | boolean | use the cached copy if it is available, by default it is off |
public getPackages ( ) : array | ||
return | array |
protected getUseCache ( ) : boolean | ||
return | boolean |
public getXmlContent ( ) : SimpleXMLElement | ||
return | SimpleXMLElement |
protected Package[],TextAnalysis\Utilities\Nltk\Download $packages | ||
return |