1
0

ExtendedGitGraph

This commit is contained in:
2020-01-15 00:57:11 +01:00
parent af09b49e8a
commit 114e93d09e
5 changed files with 23 additions and 24 deletions

35
www/internals/webapps.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
require_once 'website.php';
class WebApps
{
/** @var array */
private $staticData;
public function __construct()
{
$this->load();
}
private function load()
{
$all = require (__DIR__ . '/../statics/webapps/__all.php');
$this->staticData = array_map(function($a){return self::readSingle($a);}, $all);
}
private static function readSingle($a)
{
return $a;
}
public function listAllNewestFirst()
{
$data = $this->staticData;
usort($data, function($a, $b) { return strcasecmp($b['date'], $a['date']); });
return $data;
}
}