Currently my code looks like that:
switch ($_POST[\'operation\']) { case \'create\': $db_manager->create(); break; case \'retrieve\':
Use method_exists()
method_exists($obj, $method_name);