12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
-
- namespace App\Http\Controller;
-
- use App\Http\Business\CameraTypesBusiness;
- use Luticate\Auth\DBO\LuticateUsersDbo;
- use Luticate\Utils\LuController;
- use App\Http\Business\CamerasBusiness;
- use App\Http\DBO\CamerasDbo;
- use Luticate\Utils\LuMultipleDbo;
-
- class CamerasController extends LuController {
- protected function getBusiness()
- {
- return new CamerasBusiness();
- }
-
-
-
- public function getAllTypes($page = 0, $perPage = PHP_INT_MAX, $query = "")
- {
- return CameraTypesBusiness::getAll($page, $perPage, $query);
- }
-
-
-
- public function getAll($_user, $page = 0, $perPage = PHP_INT_MAX, $query = "")
- {
- return CamerasBusiness::getAllLight($_user, $page, $perPage, $query);
- }
-
-
-
- public function get($_user, $camera_id)
- {
- return CamerasBusiness::getLight($_user, $camera_id);
- }
-
-
-
- public function add(CamerasDbo $camera)
- {
- return CamerasBusiness::add($camera);
- }
-
-
-
- public function edit(CamerasDbo $camera, $camera_id)
- {
- return CamerasBusiness::edit($camera, $camera_id);
- }
-
-
-
- public function del($camera_id)
- {
- return CamerasBusiness::deleteById($camera_id);
- }
-
-
-
- public function getImage($camera_id)
- {
- return CamerasBusiness::getImage($camera_id);
- }
- }
|