/**
  * Constructor
  *
  * @param   JDatabaseDriver  $db  A database connector object
  *
  * @since   11.1
  */
 public function __construct(JDatabaseDriver $db)
 {
     parent::__construct('#__content', 'id', $db);
     if (JComponentHelper::isEnabled('com_tags')) {
         JLoader::register('TagsTableObserverTags', JPATH_ADMINISTRATOR . '/components/com_tags/tables/observer/tags.php');
         TagsTableObserverTags::createObserver($this, array('typeAlias' => 'com_content.article'));
     }
     if (JComponentHelper::isEnabled('com_contenthistory')) {
         JLoader::register('ContenthistoryTableObserverHistory', JPATH_ADMINISTRATOR . '/components/com_contenthistory/tables/observer/history.php');
         ContenthistoryTableObserverHistory::createObserver($this, array('typeAlias' => 'com_content.article'));
     }
 }
 /**
  * Constructor
  *
  * @param JDatabaseDriver A database connector object
  */
 public function __construct($db)
 {
     parent::__construct('#__content_tags', 'id', $db);
     JLoader::register('ContenthistoryTableObserverHistory', JPATH_ADMINISTRATOR . '/components/com_contenthistory/tables/observer/history.php');
     ContenthistoryTableObserverHistory::createObserver($this, array('typeAlias' => 'com_tags.tag'));
 }