diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-06-21 23:03:15 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-06-21 23:03:15 -0400 |
| commit | 92465af465886f14f22bb60dd974a93baa9c5322 (patch) | |
| tree | 2f9a660371cab99e842e4a93ad9818128e6e3390 /private/view/Result.php | |
| parent | 4406034152597a049de0706520a274f6e6271fe9 (diff) | |
| download | august-offensive-92465af465886f14f22bb60dd974a93baa9c5322.tar.gz august-offensive-92465af465886f14f22bb60dd974a93baa9c5322.tar.bz2 august-offensive-92465af465886f14f22bb60dd974a93baa9c5322.zip | |
Add basic MVC structure with namespacing and PHPDOC (not tested)
Diffstat (limited to 'private/view/Result.php')
| -rw-r--r-- | private/view/Result.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/private/view/Result.php b/private/view/Result.php new file mode 100644 index 0000000..5241e0c --- /dev/null +++ b/private/view/Result.php @@ -0,0 +1,39 @@ +<?php + +namespace AugustOffensive\view; + +include '../controller/Controller.php'; +include '../model/Connection.php'; + +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 \Connection $connection "needs to know" model exists + * + * @return Result + */ + public function __construct (Connection $connection) + { + header("Content-Type: application/json"); + // + } + + /** + * Communicates with the controller to generate the JSON result. + * + * @return array $result resulting sendback object generated from query. + */ + public function collect () + { + // + return array(); + } +} |
