1 | <?php |
||
13 | abstract class Carbon_Breadcrumb_Item_DB_Object extends Carbon_Breadcrumb_Item implements Carbon_Breadcrumb_DB_Object { |
||
14 | |||
15 | /** |
||
16 | * ID of the object, associated with this breadcrumb item. |
||
17 | * |
||
18 | * @access protected |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $id = 0; |
||
22 | |||
23 | /** |
||
24 | * Configure the title and link URL by using the specified post ID. |
||
25 | * |
||
26 | * @access public |
||
27 | */ |
||
28 | public function setup() { |
||
35 | |||
36 | /** |
||
37 | * Retrieve the object ID. |
||
38 | * |
||
39 | * @access public |
||
40 | * |
||
41 | * @return int $id The ID of the object associated with this breadcrumb item. |
||
42 | */ |
||
43 | public function get_id() { |
||
46 | |||
47 | /** |
||
48 | * Modify the ID of the object associated with this breadcrumb item. |
||
49 | * |
||
50 | * @access public |
||
51 | * |
||
52 | * @param int $id The new object ID. |
||
53 | */ |
||
54 | public function set_id( $id = 0 ) { |
||
57 | |||
58 | /** |
||
59 | * Setup the title of this item. |
||
60 | * |
||
61 | * @abstract |
||
62 | * @access public |
||
63 | */ |
||
64 | abstract public function setup_title(); |
||
65 | |||
66 | /** |
||
67 | * Setup the link of this item. |
||
68 | * |
||
69 | * @abstract |
||
70 | * @access public |
||
71 | */ |
||
72 | abstract public function setup_link(); |
||
73 | |||
74 | } |
||
75 |