aboutsummaryrefslogtreecommitdiffstats
path: root/Report/Box/ignore_01_UpstreamProjects.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-05-04 13:26:54 +0000
committerRomain d'Alverny <rda@mageia.org>2011-05-04 13:26:54 +0000
commitd08c07b68d0e88d863f597fe5e9ed72d84229ab7 (patch)
tree30b86dbcb4af35e87f2a76c637a214583022a0db /Report/Box/ignore_01_UpstreamProjects.php
parent25cbfbccf63d176683a3da50913679cab311e21c (diff)
downloaddashboard-d08c07b68d0e88d863f597fe5e9ed72d84229ab7.tar
dashboard-d08c07b68d0e88d863f597fe5e9ed72d84229ab7.tar.gz
dashboard-d08c07b68d0e88d863f597fe5e9ed72d84229ab7.tar.bz2
dashboard-d08c07b68d0e88d863f597fe5e9ed72d84229ab7.tar.xz
dashboard-d08c07b68d0e88d863f597fe5e9ed72d84229ab7.zip
initial import
Diffstat (limited to 'Report/Box/ignore_01_UpstreamProjects.php')
-rw-r--r--Report/Box/ignore_01_UpstreamProjects.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/Report/Box/ignore_01_UpstreamProjects.php b/Report/Box/ignore_01_UpstreamProjects.php
new file mode 100644
index 0000000..77f83cf
--- /dev/null
+++ b/Report/Box/ignore_01_UpstreamProjects.php
@@ -0,0 +1,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
+ );
+ }
+}