static function getAutoAssignMode($val = NULL)
{
$tab = array(self::CONFIG_PARENT => __('Inheritance of the parent entity'), self::CONFIG_NEVER => __('No'), self::AUTO_ASSIGN_HARDWARE_CATEGORY => __('Based on the item then the category'), self::AUTO_ASSIGN_CATEGORY_HARDWARE => __('Based on the category then the item'));
if (is_null($val)) {
return $tab;
}
if (isset($tab[$val])) {
return $tab[$val];
}
return NOT_AVAILABLE;
}