Conditions | 2 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function get_item_hierarchy( $id, $priority ) { |
||
25 | $items = array(); |
||
26 | |||
27 | do { |
||
28 | $item = Carbon_Breadcrumb_Item::factory( $this->get_type(), $priority ); |
||
29 | $item->set_id( $id ); |
||
30 | $item->set_subtype( $this->get_subtype() ); |
||
31 | $item->setup(); |
||
32 | |||
33 | $items[] = $item; |
||
34 | |||
35 | $id = $this->get_parent_id( $id ); |
||
36 | } while ( $id ); |
||
37 | |||
38 | return array_reverse( $items ); |
||
39 | } |
||
40 | |||
51 |