Moved to high charts.

This commit is contained in:
James Cole
2014-07-15 06:58:08 +02:00
parent 6e7ea89c70
commit 0e09e52e45
26 changed files with 2055 additions and 85 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Firefly\Storage\Account\AccountRepositoryInterface as ARI;
use Firefly\Storage\Component\ComponentRepositoryInterface as CRI;
class JsonController extends BaseController
{
public function __construct(ARI $accounts,CRI $components)
{
$this->components = $components;
$this->accounts = $accounts;
}
/**
* Returns a JSON list of all beneficiaries.
*/
public function beneficiaries()
{
$list = $this->accounts->getBeneficiaries();
$return = [];
foreach ($list as $entry) {
$return[] = $entry->name;
}
return Response::json($return);
}
/**
* Responds some JSON for typeahead fields.
*/
public function categories()
{
$list = $this->components->get();
}
}