public static function getManagerGroup($manager)
{
$group = array();
switch ($manager) {
// Pathe needs to be set too
case 'categoryimage':
$group['f'] = 4;
//File
$group['i'] = 1;
//Image
$group['t'] = 'image';
//Text
$group['c'] = '&tmpl=component';
break;
case 'productimage':
$group['f'] = 5;
//File
$group['i'] = 1;
//Image
$group['t'] = 'image';
//Text
$group['c'] = '&tmpl=component';
break;
case 'submititem':
$group['f'] = 7;
//File
$group['i'] = 1;
//Image
$group['t'] = 'image';
//Text
$group['c'] = '&tmpl=component';
break;
case 'productfile':
$group['f'] = 3;
//File
$group['i'] = 0;
//Image
$group['t'] = 'file';
//Text
$group['c'] = '&tmpl=component';
break;
case 'attributefile':
$group['f'] = 3;
//File
$group['i'] = 0;
//Image
$group['t'] = 'file';
//Text
$group['c'] = '&tmpl=component';
break;
case 'publicfile':
$group['f'] = 6;
//File
$group['i'] = 0;
//Image
$group['t'] = 'file';
//Text
$group['c'] = '&tmpl=component';
break;
case 'attachmentfile':
$group['f'] = 8;
//File
$group['i'] = 0;
//Image
$group['t'] = 'file';
//Text
$group['c'] = '&tmpl=component';
break;
default:
$group['f'] = 0;
//File
$group['i'] = 0;
//Image
$group['t'] = 'file';
//Text
$group['c'] = '&tmpl=component';
break;
}
return $group;
}