]> BookStack Code Mirror - bookstack/blob - app/Http/Controllers/AttributeController.php
Started base work on attribute system
[bookstack] / app / Http / Controllers / AttributeController.php
1 <?php namespace BookStack\Http\Controllers;
2
3 use BookStack\Repos\AttributeRepo;
4 use Illuminate\Http\Request;
5
6 use BookStack\Http\Requests;
7
8 class AttributeController extends Controller
9 {
10
11     protected $attributeRepo;
12
13     /**
14      * AttributeController constructor.
15      * @param $attributeRepo
16      */
17     public function __construct(AttributeRepo $attributeRepo)
18     {
19         $this->attributeRepo = $attributeRepo;
20     }
21
22
23     /**
24      * Get all the Attributes for a particular entity
25      * @param $entityType
26      * @param $entityId
27      */
28     public function getForEntity($entityType, $entityId)
29     {
30         
31     }
32 }