| 1 | <?php |
||
| 7 | class Carbon_Breadcrumb_Item_User extends Carbon_Breadcrumb_Item_DB_Object { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Configure the title and link URL by using the specified author user ID. |
||
| 11 | * |
||
| 12 | * @access public |
||
| 13 | */ |
||
| 14 | 2 | public function setup() { |
|
| 15 | // in order to continue, author user ID must be specified |
||
| 16 | 2 | if ( ! $this->get_id() ) { |
|
| 17 | 1 | throw new Carbon_Breadcrumb_Exception( 'The author breadcrumb items must have author 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() { |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Setup the link of this item. |
||
| 35 | * |
||
| 36 | * @access public |
||
| 37 | */ |
||
| 38 | 1 | public function setup_link() { |
|
| 41 | |||
| 42 | } |