◆ __construct()
__construct |
( |
dcModules |
$modules, |
|
|
string |
$xml_url, |
|
|
bool |
$force = false |
|
) |
| |
◆ check()
check |
( |
bool |
$force = false | ) |
|
◆ getDefines()
getDefines |
( |
bool |
$update = false | ) |
|
Get a list of modules.
- Parameters
-
bool | $update | True to get update modules, false for new ones |
- Returns
- array List of update/new modules defines
◆ get()
get |
( |
bool |
$update = false | ) |
|
Get a list of modules.
- Deprecated:
- since 2.26 Use self::getDefines()
- Parameters
-
bool | $update | True to get update modules, false for new ones |
- Returns
- array List of update/new modules
References Deprecated\set().
◆ searchDefines()
searchDefines |
( |
string |
$pattern | ) |
|
Search a module.
Search string is cleaned, split and compare to split:
- module id and clean id,
- module name, clean name,
- module desccription.
Every time a part of query is find on module, result accuracy grow. Result is sorted by accuracy.
- Parameters
-
string | $pattern | String to search |
- Returns
- array Match modules defines
References $defines.
Referenced by search().
◆ search()
search |
( |
string |
$pattern | ) |
|
◆ process()
process |
( |
string |
$url, |
|
|
string |
$dest |
|
) |
| |
◆ download()
download |
( |
string |
$url, |
|
|
string |
$dest |
|
) |
| |
Download a module.
- Parameters
-
string | $url | Module package URL |
string | $dest | Path to put module package |
Referenced by process().
◆ install()
◆ agent()
User Agent String.
- Parameters
-
string | $str | User agent string |
◆ $modules
◆ $weighting
Initial value:= [
'id' => 10,
'name' => 8,
'tags' => 6,
'desc' => 4,
'author' => 2,
]
◆ $user_agent
$user_agent = 'DotClear.org RepoBrowser/0.1' |
|
protected |
◆ $xml_url
◆ $data
Initial value:= [
'new' => [],
'update' => [],
]
◆ $defines
Initial value:= [
'new' => [],
'update' => [],
]
Referenced by searchDefines().
The documentation for this class was generated from the following file: