Removed some inconsientcies in variable naming
This commit is contained in:
parent
9dbe6112dd
commit
7dae1d826e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user