Projects/nettsiden-old
Projects
/
nettsiden-old
Archived
8
0
Fork 0
This commit is contained in:
Peder Bergebakken Sundt 2016-08-26 18:39:48 +02:00
commit 6d1bf247c5
3 changed files with 6 additions and 2 deletions

2
dev.sh
View File

@ -1,4 +1,4 @@
#!/bin/sh
which -s sqlite3 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < pvv.sql
which sqlite3 > /dev/null 2>&1 && test \! -e pvv.sqlite && sqlite3 pvv.sqlite < pvv.sql
test \! -e sql_config.php && cp sql_config_example.php sql_config.php
php -S [::]:1080 -t www/

View File

@ -24,7 +24,7 @@ class DBActivity implements Activity {
$stmt = $this->pdo->prepare($query);
$stmt->execute(['date' => $date->format('Y-m-d H:i:s')]);
if ($result = $stmt->fetch(PDO::FETCH_ASSOC)){
$ev = new OnceEvent(
$ev = new SimpleEvent(
$result['name'],
DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $result['start']),
DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $result['stop']),

View File

@ -33,4 +33,8 @@ Class SimpleEvent extends Event {
return $this->name;
}
public function getURL() {
}
}