function __construct()
 {
     parent::__construct();
     $this->_input = JFactory::getApplication()->input;
     $this->registerTask('add', 'edit');
     if (!$this->_input->getCmd('task', '')) {
         // Set submenu
         require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
         JoomlaBacklinkCheckerHelper::addSubmenu($this->_input->getCmd('view', 'joomlabacklinkchecker'));
     }
 }
 public function display($cachable = false, $urlparams = false)
 {
     // We need the category model also in the default view for the selection list
     $view = $this->getView('joomlabacklinkchecker', 'html');
     if ($model_categories = $this->getModel('categories')) {
         $view->setModel($model_categories, false);
     }
     // Set submenu
     require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
     JoomlaBacklinkCheckerHelper::addSubmenu(JFactory::getApplication()->input->getCmd('view', 'joomlabacklinkchecker'));
     parent::display();
 }
 function __construct()
 {
     parent::__construct();
     $this->_input = JFactory::getApplication()->input;
     $this->registerTask('add', 'edit');
     if (!$this->_input->getCmd('task', '')) {
         $view = $this->getView('joomlabacklinkchecker', 'html');
         if ($model_categories = $this->getModel('categories')) {
             $view->setModel($model_categories, false);
         }
         // Set submenu
         require_once JPATH_COMPONENT . '/helpers/joomlabacklinkchecker.php';
         JoomlaBacklinkCheckerHelper::addSubmenu($this->_input->getCmd('view', 'joomlabacklinkchecker'));
     }
 }