: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Database;
use Nextend\Framework\Database\Joomla\JoomlaConnector;
use Nextend\Framework\Database\Joomla\JoomlaConnectorTable;
use Nextend\Framework\Database\WordPress\WordPressConnector;
use Nextend\Framework\Database\WordPress\WordPressConnectorTable;
use Nextend\Framework\Pattern\SingletonTrait;
* @var AbstractPlatformConnector
private static $platformConnector;
protected function init() {
self::$platformConnector = new WordPressConnector();
* @return AbstractPlatformConnectorTable
public static function getTable($tableName) {
return new WordPressConnectorTable($tableName);
public static function getPrefix() {
return self::$platformConnector->getPrefix();
public static function parsePrefix($query) {
return self::$platformConnector->parsePrefix($query);
public static function insertId() {
return self::$platformConnector->insertId();
public static function query($query, $attributes = false) {
return self::$platformConnector->query($query, $attributes);
* Return with one row by query string
* @param array|bool $attributes for parameter binding
public static function queryRow($query, $attributes = false) {
return self::$platformConnector->queryRow($query, $attributes);
public static function queryAll($query, $attributes = false, $type = "assoc", $key = null) {
return self::$platformConnector->queryAll($query, $attributes, $type, $key);
public static function quote($text, $escape = true) {
return self::$platformConnector->quote($text, $escape);
public static function quoteName($name, $as = null) {
return self::$platformConnector->quoteName($name, $as);
public static function getCharsetCollate() {
return self::$platformConnector->getCharsetCollate();