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;
|
$this->fcnNames[$fcnName] = $methodName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle($fcnName, $data, $post)
|
public function handle($fcnName, $user, $post)
|
||||||
{
|
{
|
||||||
if(empty($this->fcnNames[$fcnName]))
|
if(empty($this->fcnNames[$fcnName]))
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
|
|
||||||
$method = $this->fcnNames[$fcnName];
|
$method = $this->fcnNames[$fcnName];
|
||||||
$this->$method($data, $post);
|
$this->$method($user, $post);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkLen($value, $len, $msg)
|
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
|
class ClubsControllerParts extends BaseController
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -257,6 +265,11 @@ class ClubsControllerParts extends BaseController
|
|||||||
$obj = new ClubsHelperControllerUser();
|
$obj = new ClubsHelperControllerUser();
|
||||||
$obj->handle($fcnName, $user, $post);
|
$obj->handle($fcnName, $user, $post);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'club':
|
||||||
|
$obj = new ClubsHelperControllerClub();
|
||||||
|
$obj->handle($fcnName, $user, $post); // TODO User!?!?!
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
|
Loading…
Reference in New Issue
Block a user