diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-06-23 19:46:08 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-06-23 19:46:08 -0400 |
| commit | 92a7e43b7d4792cdb54eceefd3256324a8eca458 (patch) | |
| tree | c224be987667d14f54b5794181e53b216f970e07 /private/view | |
| parent | 92465af465886f14f22bb60dd974a93baa9c5322 (diff) | |
| download | august-offensive-92a7e43b7d4792cdb54eceefd3256324a8eca458.tar.gz august-offensive-92a7e43b7d4792cdb54eceefd3256324a8eca458.tar.bz2 august-offensive-92a7e43b7d4792cdb54eceefd3256324a8eca458.zip | |
Fix compilation errors, return JSON from view\Result->Collect()
Diffstat (limited to 'private/view')
| -rw-r--r-- | private/view/Result.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/private/view/Result.php b/private/view/Result.php index 5241e0c..0a2dd95 100644 --- a/private/view/Result.php +++ b/private/view/Result.php @@ -2,9 +2,6 @@ namespace AugustOffensive\view; -include '../controller/Controller.php'; -include '../model/Connection.php'; - use AugustOffensive\controller; use AugustOffensive\model; @@ -20,7 +17,7 @@ class Result * * @return Result */ - public function __construct (Connection $connection) + public function __construct (model\Connection $connection) { header("Content-Type: application/json"); // @@ -29,11 +26,11 @@ class Result /** * Communicates with the controller to generate the JSON result. * - * @return array $result resulting sendback object generated from query. + * @return string $result resulting sendback object generated from query. */ public function collect () { // - return array(); + return json_encode(array("Result-Type" => "", "Content" => array())); } } |
