Removed some inconsientcies in variable naming

This commit is contained in:
Christian Wolf 2019-06-19 16:18:42 +02:00
parent 9dbe6112dd
commit 7dae1d826e

View File

@ -28,13 +28,13 @@ abstract class AbstractClubsHelperController
$this->fcnNames[$fcnName] = $methodName;
}
public function handle($fcnName, $data, $post)
public function handle($fcnName, $user, $post)
{
if(empty($this->fcnNames[$fcnName]))
throw new Exception();
$method = $this->fcnNames[$fcnName];
$this->$method($data, $post);
$this->$method($user, $post);
}
protected function checkLen($value, $len, $msg)
@ -217,6 +217,14 @@ class ClubsHelperControllerUser extends AbstractClubsHelperController
}
class ClubsHelperControllerClub extends AbstractClubsHelperController
{
protected function registerAll()
{}
}
class ClubsControllerParts extends BaseController
{
@ -258,6 +266,11 @@ class ClubsControllerParts extends BaseController
$obj->handle($fcnName, $user, $post);
break;
case 'club':
$obj = new ClubsHelperControllerClub();
$obj->handle($fcnName, $user, $post); // TODO User!?!?!
break;
default:
throw new Exception();
}