| 1 | <?php |
||
| 7 | class Carbon_Breadcrumb_Item_Post extends Carbon_Breadcrumb_Item_DB_Object { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Configure the title and link URL by using the specified post ID. |
||
| 11 | * |
||
| 12 | * @access public |
||
| 13 | */ |
||
| 14 | 2 | public function setup() { |
|
| 15 | // in order to continue, post ID must be specified |
||
| 16 | 2 | if ( ! $this->get_id() ) { |
|
| 17 | 1 | throw new Carbon_Breadcrumb_Exception( 'The post breadcrumb items must have post ID specified.' ); |
|
| 18 | } |
||
| 19 | |||
| 20 | 1 | parent::setup(); |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Setup the title of this item. |
||
| 25 | * |
||
| 26 | * @access public |
||
| 27 | */ |
||
| 28 | 1 | public function setup_title() { |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Setup the link of this item. |
||
| 36 | * |
||
| 37 | * @access public |
||
| 38 | */ |
||
| 39 | 1 | public function setup_link() { |
|
| 43 | |||
| 44 | } |