Can anyone explain me what does the below coding mean?
$html = array();
$combineClasses = array();
$combineClasses[] = 'level' . $level;
if ($this->_isCurrentCategory($category)) {
$combineClasses[] = 'active';
} else {
$combineClasses[] = $this->isCategoryActive($category) ? 'parent' : 'inactive';
}
$levelClass[] = implode('-', $combineClasses);
if ($category->hasChildren()) {
$levelClass[] = 'has-children';
}
$levelClass = array_merge($levelClass, $combineClasses);
$levelClass[] = $this->_getClassNameFromCategoryName($category);