From 08fe45abcbd170e8bb740f34528c6ae750c09070 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Sun, 17 Jul 2016 10:24:03 +0200 Subject: [PATCH] Add a stub API --- txt.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 txt.php diff --git a/txt.php b/txt.php new file mode 100644 index 0000000..0be3719 --- /dev/null +++ b/txt.php @@ -0,0 +1,18 @@ +get_questions() as $q) +{ + if (!empty($filter) && strtolower($q->getCourse()->getCode()) != $filter) + continue; + + $a = $q->getAnswer(); + echo $q->getQuestion()."\n > ".$a[0]."\n\n"; +} +?> \ No newline at end of file