diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-07-08 11:11:53 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-07-08 11:11:53 -0400 |
| commit | 2d796d48df6f4371111bcbc776ea781e4f45c831 (patch) | |
| tree | 8b70da2114d71d2835b2f58eb2d43083a3ff5a6f /private/view/Result.php | |
| parent | 3b75177580e536ce309d44759eb4d1f772c987ce (diff) | |
| download | august-offensive-2d796d48df6f4371111bcbc776ea781e4f45c831.tar.gz august-offensive-2d796d48df6f4371111bcbc776ea781e4f45c831.tar.bz2 august-offensive-2d796d48df6f4371111bcbc776ea781e4f45c831.zip | |
Expand on query and result, begin sql design
Diffstat (limited to 'private/view/Result.php')
| -rw-r--r-- | private/view/Result.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/private/view/Result.php b/private/view/Result.php deleted file mode 100644 index 2d12c28..0000000 --- a/private/view/Result.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive\view; - -use AugustOffensive\controller; -use AugustOffensive\model; - -/** - * Outputs the JSON result by communicating with the controller. - */ -class Result -{ - /** - * Prepares the output and environment for the front end of the service. - * - * @param model\Connection $connection "needs to know" model exists - * - * @return Result - */ - public function __construct (model\Connection $connection) - { - header("Content-Type: application/json"); - // - return $this; - } - - /** - * Communicates with the controller to generate the JSON result. - * - * @return string $result resulting sendback object generated from query. - */ - public function collect (): string - { - // - return json_encode(array("Result-Type" => "", "Content" => array())); - } -} |
