/*
* Transform type array to int
* 0 ... common
* 1 ... online shop
* 2 ... pos
*
* example: array(0,2) means - all common categories/payment methods/shipping methods plus only POS categories
* example: array(0,1) means - all common categories/payment methods/shipping methods plus only Online Shop categories
*/
public static function getTypeByTypeArray($type = array(0, 1))
{
return (int) $type[1];
}