parentsTree
Retrieve all the categories parents of one passed through parameter,
checking data from bottom to top.
public static parentsTree ( [int] $id, [array] &$array, [array] $fields = ['id', 'category_id', 'name'] ) | ||
$id | [int] | |
$array | [array] | |
$fields | [array] |