Add pg4wp plugin and update wordpress.yaml

This commit is contained in:
gitea_admin committed 2026-10-02 22:47:41 +03:30
1 parent 0a51ac0a31
commit a4d8c0f418
23 files changed
+4304 -6

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<?php
abstract class AbstractSQLRewriter
{
protected string $originalSQL;
public function __construct(string $sql)
{
$this->originalSQL = $sql;
}
abstract public function rewrite(): string;
public function original(): string
{
return $this->originalSQL;
}
public function type(): string
{
// Get the called class name and remove the "SQLRewriter" suffix to get the SQL type
$className = get_called_class();
$type = str_replace('SQLRewriter', '', $className);
return $type;
}
}