public function getSelects($locationId, $maxLocationType)
{
$this->selects = [];
$this->maxLocationType = $maxLocationType;
if ($locationId) {
$hierarchy = $this->getHierarchy($locationId);
$rootLocation = !empty($hierarchy) ? array_shift($hierarchy) : null;
$this->buildRootSelector($rootLocation);
if (!empty($rootLocation)) {
$this->buildChildrenSelects($rootLocation, $hierarchy);
}
} else {
$this->buildRootSelector();
}
return $this->selects;
}