1 | <?php |
||
31 | class DefaultController extends Controller |
||
32 | { |
||
33 | private $entities; |
||
34 | |||
35 | public function __construct() |
||
49 | |||
50 | /** |
||
51 | * @Route("/", name="_home") |
||
52 | * @Method("GET") |
||
53 | * @Template() |
||
54 | * |
||
55 | * @return \Symfony\Component\HttpFoundation\Response|\Symfony\Component\HttpFoundation\RedirectResponse |
||
56 | */ |
||
57 | public function indexAction() |
||
71 | |||
72 | /** |
||
73 | * Get stock alerts. |
||
74 | * |
||
75 | * @Route("/alert", name="stockalert") |
||
76 | * @Method("GET") |
||
77 | * @Template("default/stockAlert.html.twig") |
||
78 | * |
||
79 | * @param integer $number Number of alerts to display. |
||
80 | * @return array|null |
||
81 | */ |
||
82 | public function stockAlertAction($number) |
||
96 | |||
97 | /** |
||
98 | * Get the latest inventories. |
||
99 | * |
||
100 | * @Route("/alert", name="lastinventories") |
||
101 | * @Method("GET") |
||
102 | * @Template("default/lastInventory.html.twig") |
||
103 | * |
||
104 | * @param integer $number Number of inventories to display |
||
105 | * @return array|null |
||
106 | */ |
||
107 | public function lastInventoryAction($number) |
||
114 | |||
115 | /** |
||
116 | * Get the latest orders. |
||
117 | * |
||
118 | * @Route("/alert", name="lastorders") |
||
119 | * @Method("GET") |
||
120 | * @Template("default/lastorder.html.twig") |
||
121 | * |
||
122 | * @param integer $number Number of orders to display |
||
123 | * @return array|null |
||
124 | */ |
||
125 | public function lastOrdersAction($number) |
||
132 | |||
133 | /** |
||
134 | * Get the latest deliveries. |
||
135 | * |
||
136 | * @Route("/alert", name="lastorders") |
||
137 | * @Method("GET") |
||
138 | * @Template("default/lastDelivery.html.twig") |
||
139 | * |
||
140 | * @param integer $number Number of orders to display |
||
141 | * @return array|null |
||
142 | */ |
||
143 | public function lastDeliveriesAction($number) |
||
150 | |||
151 | /** |
||
152 | * Get the latest invoices. |
||
153 | * |
||
154 | * @Route("/alert", name="lastorders") |
||
155 | * @Method("GET") |
||
156 | * @Template("default/lastInvoice.html.twig") |
||
157 | * |
||
158 | * @param integer $number Number of orders to display |
||
159 | * @return array|null |
||
160 | */ |
||
161 | public function lastInvoicesAction($number) |
||
168 | |||
169 | /** |
||
170 | * Test entities. |
||
171 | * |
||
172 | * @return string|null |
||
173 | */ |
||
174 | private function testEntities() |
||
195 | |||
196 | /** |
||
197 | * Get FamilyLog. |
||
198 | * |
||
199 | * @Route("/getfamilylog", name="getfamilylog") |
||
200 | * @Method("POST") |
||
201 | * |
||
202 | * @param \Symfony\Component\HttpFoundation\Request $request Post request |
||
203 | * @return \Symfony\Component\HttpFoundation\Response |
||
204 | */ |
||
205 | public function getFamilyLogAction(Request $request) |
||
226 | } |
||
227 |