public static function categoriesDropDownFormat($array, &$outPut)
{
foreach ($array as $row) {
/**
* $level
* Contains the category tree
* @var [type]
*/
$level = categoriesHelper::level($array, $row['category_id']);
$s = '';
for ($i = 0; $i < $level; $i++) {
$s .= ' ';
}
$icon = 2;
if ($level % 3 == 0) {
$icon = 0;
} elseif ($level % 2 == 0) {
$icon = 1;
}
$indentation = ['●', '•', 'º'][$icon];
$outPut[$row['id']] = $s . $indentation . ' ' . $row['name'];
}
}