aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/page/delete.php2
-rw-r--r--admin/page/insert.php2
-rw-r--r--admin/page/update.php2
-rw-r--r--admin/post/delete.php2
-rw-r--r--admin/post/insert.php2
-rw-r--r--admin/post/update.php2
-rw-r--r--admin/user/delete.php2
-rw-r--r--admin/user/insert.php2
-rw-r--r--admin/user/update.php2
-rw-r--r--core/namespace/Attribute.php6
10 files changed, 12 insertions, 12 deletions
diff --git a/admin/page/delete.php b/admin/page/delete.php
index 1406ece..69ad242 100644
--- a/admin/page/delete.php
+++ b/admin/page/delete.php
@@ -19,7 +19,7 @@ try {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()], 'delete')) {
try {
- if($Attribute->databaseDELETE($Database)) {
+ if($Attribute->delete($Database)) {
HTTP::redirect(Application::getAdminURL('page/'));
}
} catch(PDOException $Exception) {
diff --git a/admin/page/insert.php b/admin/page/insert.php
index ec903e7..5d4339a 100644
--- a/admin/page/insert.php
+++ b/admin/page/insert.php
@@ -24,7 +24,7 @@ if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'argv', 'time_insert',
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- if($Attribute->databaseINSERT($Database)) {
+ if($Attribute->insert($Database)) {
HTTP::redirect(Application::getAdminURL('page/'));
}
} catch(PDOException $Exception) {
diff --git a/admin/page/update.php b/admin/page/update.php
index ba34a86..8cbef7f 100644
--- a/admin/page/update.php
+++ b/admin/page/update.php
@@ -28,7 +28,7 @@ try {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- $Attribute->databaseUPDATE($Database);
+ $Attribute->update($Database);
} catch(PDOException $Exception) {
$messages[] = $Exception->getMessage();
}
diff --git a/admin/post/delete.php b/admin/post/delete.php
index 6da8a68..7d4ab10 100644
--- a/admin/post/delete.php
+++ b/admin/post/delete.php
@@ -19,7 +19,7 @@ try {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()], 'delete')) {
try {
- if($Attribute->databaseDELETE($Database)) {
+ if($Attribute->delete($Database)) {
HTTP::redirect(Application::getAdminURL('post/'));
}
} catch(PDOException $Exception) {
diff --git a/admin/post/insert.php b/admin/post/insert.php
index 6065c95..5b2ec52 100644
--- a/admin/post/insert.php
+++ b/admin/post/insert.php
@@ -24,7 +24,7 @@ if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'argv', 'time_insert',
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- if($Attribute->databaseINSERT($Database)) {
+ if($Attribute->insert($Database)) {
HTTP::redirect(Application::getAdminURL('post/'));
}
} catch(PDOException $Exception) {
diff --git a/admin/post/update.php b/admin/post/update.php
index d7778f8..6fb621d 100644
--- a/admin/post/update.php
+++ b/admin/post/update.php
@@ -28,7 +28,7 @@ try {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- $Attribute->databaseUPDATE($Database);
+ $Attribute->update($Database);
} catch(PDOException $Exception) {
$messages[] = $Exception->getMessage();
}
diff --git a/admin/user/delete.php b/admin/user/delete.php
index 18a57cf..5bc2aa5 100644
--- a/admin/user/delete.php
+++ b/admin/user/delete.php
@@ -19,7 +19,7 @@ try {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()], 'delete')) {
try {
- if($Attribute->databaseDELETE($Database)) {
+ if($Attribute->delete($Database)) {
HTTP::redirect(Application::getAdminURL('user/'));
}
} catch(PDOException $Exception) {
diff --git a/admin/user/insert.php b/admin/user/insert.php
index 59b9444..9a84fa9 100644
--- a/admin/user/insert.php
+++ b/admin/user/insert.php
@@ -26,7 +26,7 @@ if(HTTP::issetPOST('id', 'slug', 'username', 'password', 'fullname', 'mailaddr',
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- if($Attribute->databaseINSERT($Database)) {
+ if($Attribute->insert($Database)) {
HTTP::redirect(Application::getAdminURL('user/'));
}
} catch(PDOException $Exception) {
diff --git a/admin/user/update.php b/admin/user/update.php
index b9b5f08..f53d996 100644
--- a/admin/user/update.php
+++ b/admin/user/update.php
@@ -30,7 +30,7 @@ try {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) {
try {
- $Attribute->databaseUPDATE($Database);
+ $Attribute->update($Database);
} catch(PDOException $Exception) {
$messages[] = $Exception->getMessage();
}
diff --git a/core/namespace/Attribute.php b/core/namespace/Attribute.php
index ba782ac..c874a57 100644
--- a/core/namespace/Attribute.php
+++ b/core/namespace/Attribute.php
@@ -38,7 +38,7 @@ abstract class Attribute {
#===============================================================================
# Insert database item
#===============================================================================
- public function databaseINSERT(\Database $Database): bool {
+ public function insert(\Database $Database): bool {
$part[0] = '';
$part[1] = '';
@@ -59,7 +59,7 @@ abstract class Attribute {
#===============================================================================
# Update database item
#===============================================================================
- public function databaseUPDATE(\Database $Database): bool {
+ public function update(\Database $Database): bool {
$part = '';
$attributes = $this->getFilteredAttributes();
@@ -77,7 +77,7 @@ abstract class Attribute {
#===============================================================================
# Delete database item
#===============================================================================
- public function databaseDELETE(\Database $Database): bool {
+ public function delete(\Database $Database): bool {
$Statement = $Database->prepare('DELETE FROM '.static::TABLE.' WHERE id = ?');
return $Statement->execute([$this->get('id')]);
}