blob: 77f83cffaf938e26dcf34c14428ebf01251ecebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?php
/**
* Upstream projects source packages reporting box.
*
* Not working yet. Still a mockup.
*
* PHP version 5
*
* @category Dashboard
* @package Buildsystem
* @author Romain d'Alverny <rda@mageia.org>
* @license MIT License, see LICENSE.txt
* @link http://svnweb.mageia.org/svn/soft/dashboard/
*/
/**
*/
class Report_Box_UpstreamProjects extends Report_Box
{
/**
*/
var $title = "Upstream Projects";
/**
*/
function _get_var_definitions() {
return array(
'source-packages' => '%d source packages'
);
}
/**
*/
function _get_links()
{
return 'View <a href="http://check.mageia.org/updates.html">detailed report (youri-check)</a>';
}
/**
* Uses youri-check updates report.
*/
function _fetch_upstream_updates()
{
$txt = file('http://check.mageia.org/updates.txt');
return array(
'upstream-updates'=> count($txt) - 5
);
}
}
|