Gruppen können angelegt und bearbeitet werden

Teili können angelegt werden
This commit is contained in:
2024-03-23 20:46:44 +01:00
parent abc3a2a0a0
commit 5e766bc2e5
27 changed files with 608 additions and 43 deletions

View File

@ -17,6 +17,21 @@ class DatabaseHandler {
return $this->getResults($sql);
}
public function insertRows(string $tableName, array $newData) : int
{
global $wpdb;
$tableName = $wpdb->prefix . $tableName;
$wpdb->insert( $tableName, $newData );
return $wpdb->insert_id;
}
public function updateRows(string $tableName, array $newData, $conditions = [])
{
global $wpdb;
$tableName = $wpdb->prefix . $tableName;
$wpdb->update( $tableName, $newData, $conditions );
}
public function countSqlRows(string $tableName, array $conditions = []) : int
{
global $wpdb;

View File

@ -28,7 +28,7 @@ foreach (glob($directoryPath . '*.php') as $file) {
$modules = ['KompassSettings', 'LimitLoginAttempts', 'PasswordStrength', 'seo', 'Gruppen'];
$subdirs = ['includes', 'Controllers', 'Views'];
$subdirs = ['includes', 'Controllers', 'Views', 'Requests', 'Actions'];
foreach ($modules as $curModule) {
foreach ($subdirs as $dir) {