public static function getSessionActivityDetailsForList(array $activities)
{
foreach ($activities AS $key => $activity)
{
$action = $activity['controller_action'];
switch ($action)
{
case 'Index':
return new XenForo_Phrase('viewing...');
case 'Card':
return new XenForo_Phrase('viewing...');
case 'Add':
return new XenForo_Phrase('adding...');
case 'Edit':
return new XenForo_Phrase('editing...');
case 'Delete':
return new XenForo_Phrase('removing...');
}
}
}
I found this one, btw I haven't understand how it works.
Where can I define the case? from link?