| Total Complexity | 7 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class SectionRequest extends Connector |
||
| 6 | { |
||
| 7 | public function index() |
||
| 8 | { |
||
| 9 | return $this->get("sections"); |
||
| 10 | } |
||
| 11 | |||
| 12 | public function show($section) |
||
| 13 | { |
||
| 14 | $id = get_id_from_variable($section); |
||
| 15 | |||
| 16 | return $this->get("sections/{$id}"); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function subnets($section) |
||
| 24 | } |
||
| 25 | |||
| 26 | public function byName(string $section) |
||
| 27 | { |
||
| 28 | return $this->get("sections/{$section}"); |
||
| 29 | } |
||
| 30 | |||
| 31 | // TODO upgrade PhpIPAM from 1.3 to 1.5 |
||
| 32 | //public function customFields() |
||
| 33 | //{ |
||
| 34 | // return $this->get("sections/custom_fields"); |
||
| 35 | //} |
||
| 36 | |||
| 37 | public function create(array $section) |
||
| 40 | } |
||
| 41 | |||
| 42 | public function update($section, array $newData) |
||
| 47 | } |
||
| 48 | |||
| 49 | public function drop($section) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |