Example #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(Cms $cms)
 {
     parent::__construct($cms);
     $this->_db = \JFactory::getDbo();
 }
Example #2
0
 /**
  * {@inheritdoc}
  * @SuppressWarnings(PHPMD.Superglobals)
  */
 public function __construct(Cms $cms)
 {
     parent::__construct($cms);
     $this->_db = $GLOBALS['wpdb'];
 }