1
0

added webapps section

This commit is contained in:
2018-05-13 15:46:13 +02:00
parent eba2d04272
commit 02aaaf793d
9 changed files with 201 additions and 4 deletions

25
www/internals/webapp.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
class WebApps
{
public static function listAll()
{
$all = require (__DIR__ . '/../statics/webapps/__all.php');
return array_map('self::readSingle', $all);
}
public static function readSingle($a)
{
return $a;
}
public static function listAllNewestFirst()
{
$data = self::listAll();
usort($data, function($a, $b) { return strcasecmp($b['date'], $a['date']); });
return $data;
}
}