Working on my OOP skills. What would be best way to convert the following function to a class?
[php]function show_action_messages()
{
if (isset($_GET[‘insert’]))
{
$action = ‘Added’;
}
if (isset($_GET[‘edit’]))
{
$action = ‘Updated’;
}
if (isset($_GET[‘deleted’]))
{
$action = ‘Deleted’;
}
if (isset($_GET[‘emailed’]))
{
$action = ‘Emailed’;
}
if (isset($action))
{
?>
My Start
[php]class ShowActionMessages
{
}[/php]