summaryrefslogtreecommitdiff
path: root/lib/list/inc_process.php
diff options
context:
space:
mode:
authorroot <root@adnab.me>2014-01-31 16:42:40 +0100
committerroot <root@adnab.me>2014-01-31 16:42:40 +0100
commitb0c23ea84327d48e3a4383fac3e795c2dc0a1215 (patch)
tree625a8f0882815d9442a4ff2ec15a49e669a15ed3 /lib/list/inc_process.php
parentcee55b766230837c21453f85e76a921cb5b8b89e (diff)
downloadBits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.tar.gz
Bits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.zip
Remove all studying apps code.
Diffstat (limited to 'lib/list/inc_process.php')
-rw-r--r--lib/list/inc_process.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/list/inc_process.php b/lib/list/inc_process.php
deleted file mode 100644
index 0c7dd82..0000000
--- a/lib/list/inc_process.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-require("lib/JSON/inc_json.php");
-require("lib/list/list_models.php");
-
-function mk_batch_json($models, $contents) {
- global $list_models;
-
- $data = array("columns" => array(), "items" => array(), "questions" => array());
-
- if ($models[0] == '*') {
- $model = $list_models[substr($models, 1)];
-
- $columns = $data['columns'] = $model['columns'];
- $data['questions'] = $model['questions'];
- } else {
- $columns = explode('|', $models);
-
- foreach ($columns as $k => $c) {
- if ($c[0] == '!') {
- $data['columns'][] = substr($c, 1);
- } else {
- $data['columns'][] = $c;
- $data['questions'][] = array('col' => $k);
- }
- }
- }
-
- $items = explode("\n", $contents);
- foreach($items as $i) {
- $ii = explode('|', str_replace("\r", '', $i));
- if (count($ii) == count($columns)) {
- $data['items'][] = $ii;
- }
- }
-
- return json_encode($data);
-}
-
-