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