SnipeITAPI/readfrom.php

19 lines
445 B
PHP
Raw Permalink Normal View History

2016-05-16 15:43:49 -06:00
<?php
2016-05-19 00:41:51 -06:00
/**
* Filter table info to sane choices. You could add aliases if you like.
* The app uses all of these variations because I'm lazy and just pass label text.
*/
switch ($from) {
2016-05-16 15:43:49 -06:00
case 'accessories':
case 'accessory':
case 'acc':
$from = 'accessories';
break;
case 'consumables':
case 'consumable':
case 'con':
$from = 'consumables';
break;
default:
$from = 'assets';
}