/**
  * Build Breadcrumb Trail
  * 
  * @return  void
  */
 protected function _buildPathway()
 {
     // create breadcrumbs
     if (Pathway::count() <= 0) {
         Pathway::append(Lang::txt(strtoupper($this->_option)), 'index.php?option=' . $this->_option);
     }
     // add "API"
     Pathway::append(Lang::txt('COM_DEVELOPER_API'), 'index.php?option=' . $this->_option . '&controller=api');
     // add "Applications"
     Pathway::append(Lang::txt('COM_DEVELOPER_API_APPLICATIONS'), 'index.php?option=' . $this->_option . '&controller=' . $this->_controller);
     // do we have an application
     if ($appid = Request::getInt('id', 0)) {
         $application = new Models\Api\Application($appid);
         // add "Applications"
         Pathway::append($application->get('name'), 'index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&id=' . $appid);
     }
     // add task
     if (isset($this->_task) && !in_array($this->_task, array('view', 'display', 'applications', 'granted'))) {
         // add "Applications"
         Pathway::append(Lang::txt('COM_DEVELOPER_API_APPLICATION_' . strtoupper($this->_task)), 'index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&id=' . $appid . '&task=' . $this->_task);
     }
     // add active
     if ($active = Request::getCmd('active', null)) {
         // add "Applications"
         Pathway::append(Lang::txt(ucfirst($active)), 'index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&id=' . $appid . '&task=' . $this->_task);
     }
 }