1 | <?php |
||
13 | class Carbon_Breadcrumb_Locator_Post extends Carbon_Breadcrumb_Locator_Hierarchical { |
||
14 | |||
15 | /** |
||
16 | * Whether this the items of this locator should be included in the trail. |
||
17 | * |
||
18 | * @access public |
||
19 | * |
||
20 | * @return bool $is_included Whether the found items should be included. |
||
21 | */ |
||
22 | public function is_included() { |
||
25 | |||
26 | /** |
||
27 | * Retrieve the items, found by this locator. |
||
28 | * |
||
29 | * @access public |
||
30 | * |
||
31 | * @param int $priority The priority of the located items. |
||
32 | * @param int $post_id The post ID, used to go up the post type tree. |
||
33 | * @return Carbon_Breadcrumb_Item[] $items The items, found by this locator. |
||
34 | */ |
||
35 | public function get_items( $priority = 1000, $post_id = 0 ) { |
||
49 | |||
50 | /** |
||
51 | * Generate a set of breadcrumb items that found by this locator type and any subtype. |
||
52 | * Will generate all necessary breadcrumb items of all post types. |
||
53 | * |
||
54 | * @access public |
||
55 | * |
||
56 | * @return array $items The items, generated by this locator. |
||
57 | */ |
||
58 | public function generate_items() { |
||
67 | |||
68 | /** |
||
69 | * Get the parent ID of a specific post ID |
||
70 | * |
||
71 | * @access public |
||
72 | * |
||
73 | * @param int $id The ID of the post to retrieve the parent of. |
||
74 | * @return int $parent The parent ID. |
||
75 | */ |
||
76 | public function get_parent_id( $id ) { |
||
79 | |||
80 | } |
||
81 |