added webapps section
This commit is contained in:
25
www/internals/webapp.php
Normal file
25
www/internals/webapp.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user