public function __construct($plgParams) { if (!$this->isAvailable()) { return false; } parent::__construct($plgParams); $this->table = JTable::getInstance('content'); }
public function __construct($plgParams) { if (!$this->isAvailable()) { return false; } parent::__construct($plgParams); $db = JFactory::getDbo(); $this->table = new TableK2Item($db); }