예제 #1
0
 public function connectActionWithFloor(CallbackAction $action, AdminGrid $adminGrid, $name)
 {
     $this->floors[$name] = $adminGrid;
     $adminGrid->setParentFloor($this);
     $_this = $this;
     $action->onClick[] = function ($action, $id) use($_this, $name) {
         $_this->floorId = $id;
         $_this->floor = $name;
         $_this->handleFloor();
     };
     return $this;
 }